Skip to content

Commit

Permalink
extend thegraph fk filter with condition (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgroul authored Sep 6, 2024
1 parent fcf1207 commit 936ed52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@subsquid/openreader",
"comment": "extend thegraph fk filter with `_in` condition",
"type": "minor"
}
],
"packageName": "@subsquid/openreader"
}
1 change: 1 addition & 0 deletions graphql/openreader/src/dialect/thegraph/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ export class SchemaBuilder {
case 'lookup':
fields[`${key}_is_null`] = {type: GraphQLBoolean}
fields[`${key}_`] = {type: this.getWhere(prop.type.entity)}
fields[`${key}_in`] = {type: new GraphQLList(new GraphQLNonNull(GraphQLString))}
break
case 'list-lookup': {
let where = this.getWhere(prop.type.entity)
Expand Down

0 comments on commit 936ed52

Please sign in to comment.