-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Stitching] Issues with enums #836
Comments
Possibly - ardatan/graphql-tools#363 |
Doesn't look like this fixes it. Going to look at the merged resolvers, to verify that the resolvers in metaphysics' code are correct. This tells us whether it's on the way in, or on the way back. If it's on the way back then look at potential verification passes inside the schema checks |
Looks like it's doing two sets of "resolves" or verification steps, the results of the first one are put into the second one. So the enum "complete" function will mutate the results (from I'd imagine the two sets of completions comes from first one being in "our" API, and the latter one coming from the merged schema "above". Left = stitched |
I chatted privately with @freiksenet about this back in november - his recommendation was to try treating Metaphysics as an external API also (so that stitching doesn't use the real resolvers initially) So more like this metaphysics/src/lib/mergeSchemas.js Lines 10 to 34 in 362efca
Instead of metaphysics/src/lib/mergeSchemas.js Line 7 in 362efca
metaphysics/src/lib/mergeSchemas.js Lines 50 to 51 in 362efca
|
unblocked by ardatan/graphql-tools#613 |
Fixed 👍 |
From Slack
So, take this query
Causes issues like:
A quick look inside the enum shows they're defined as:
it looks like in turning on stitching, the value being passed into the completeLeafValue is the actual enum name
LEFT_DARK
not the valueleft white
(sidenote: they're backwards?)The text was updated successfully, but these errors were encountered: