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 abstract types are used with the payload generator for @graphitation/graphql-js-operation-payload-generator - they are ignored in favour of concrete types. This makes it hard to create mocks for queries that involve abstract interfaces and polymorphism
The text was updated successfully, but these errors were encountered:
To elaborate, the issue is that when we have mocks for interfaces, but the executor is following schema that is referring to concrete types, those interface mocks never get used. For each concrete type, we should check if there are mocks for any of the interfaces that the type implements.
Repro with instructions and comparison with the relay mock payload generator: https://github.com/ling1726/graphitation-payload-generator-repro
When abstract types are used with the payload generator for
@graphitation/graphql-js-operation-payload-generator
- they are ignored in favour of concrete types. This makes it hard to create mocks for queries that involve abstract interfaces and polymorphismThe text was updated successfully, but these errors were encountered: