mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-09 01:04:07 +00:00
Fix for generating nested filters and loading subgraph entities from db (#502)
* Handle ThunkComposer field types when generating nested filters * Fix type setting for relational fields when loading a subgraph entity from db * Fix loading nullable relational fields in GQL queries * Update package versions
This commit is contained in:
@@ -86,10 +86,7 @@ export const instantiate = async (
|
||||
assert(indexer.getEntityTypesMap);
|
||||
const entityTypesMap = indexer.getEntityTypesMap();
|
||||
|
||||
const entityTypes = entityTypesMap.get(entityName);
|
||||
assert(entityTypes);
|
||||
|
||||
return database.toGraphEntity(instanceExports, entityName, entityData, entityTypes);
|
||||
return database.toGraphEntity(instanceExports, entityName, entityData, entityTypesMap);
|
||||
},
|
||||
'store.set': async (entity: number, id: number, data: number) => {
|
||||
const entityName = __getString(entity);
|
||||
|
||||
Reference in New Issue
Block a user