graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

Fields on _operators are lost on child resolvers when using discriminators

Open tatejones opened this issue 4 years ago • 0 comments

As posted on issue #390

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.

tatejones avatar Nov 03 '21 23:11 tatejones