You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using discriminators the prepareChildResolver process (copyResolverArgTypes) will treat _operators, AND and OR as fields and call extendField from the baseResolver args to the childResolver args. This will overwrite the contents of these fields removing any specialisation found in the child resolver.
When using discriminators the prepareChildResolver process (copyResolverArgTypes) will treat _operators, AND and OR as fields and call extendField from the baseResolver args to the childResolver args. This will overwrite the contents of these fields removing any specialisation found in the child resolver.
A child based query will result in a GraphQLError
Note: it has no knowledge of the "FilterFindManyClickedLinkEventOperatorsInput" as it has been overwritten by "FilterFindManyEventOperatorsInput"
The issue is with copyResolverArgTypes on ./src/discriminators/prepareChildResolvers.ts
It checks for '_id', but '_operators', 'AND' and 'OR' are extended overwriting the childResolver details.
I believe the fix is
Integration test that produces the problem
Must have an index field to be included in _operators
A pull request will be made and the appropriate fix plus tests will be submitted for review.
The text was updated successfully, but these errors were encountered: