Allowing mocks for missing keys within provided resolvers #3529
Unanswered
coreylight
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @coreylight , the resolvers you created are resolvers just for mocks, not the actual resolvers you will use with the executable schema in production right? If the resolvers are your regular resolvers, they should be part of the executable schema. But, if you are using these resolvers just for the mocking purposes, I think you might hit something that might be not working well. Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
With version 7 we could provide partial data for our resolvers, and the mocking utility would "fill in the blanks" with the respective mocks. Did this change with version 8?
Here's a reproduction of what I'm trying to explain:
https://codesandbox.io/s/graphql-tools-mocking-with-resolver-preservation-inzxf?file=/index.js
See comment in src for wanted behavior. But I am expecting the
id
key here to be "filled in" by the mock setup.What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions