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.