-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
mergeSchemas throws when typeDefs include default values #1399
Comments
Looks like this is the rough call path:
|
mergeSchemas dummy types should handle entire SDL surface prior to better prepare for rewiring with actual types closes #1399
mergeSchemas dummy types should handle entire SDL surface prior to better prepare for rewiring with actual types closes #1399
Thanks for pointing this out, see PR for canary build. |
Thanks for the quick fix @yaacovCR! Confirmed |
This change should also preserve directives in the AST for the gateway types -- this missing behavior likely led to bugs with directives on new types using mergeSchemas. Directives were probably working on type extensions, as those are separated out and handled by extendSchema. @DrewML -- thank you for bringing this to our attention!!!!!!! |
Closed by #1419. |
Minimal Repro
Believe this relates to the fix done for #1121
Looks like the whole AST node for
defaultValue
is being passed toserializeString
,serializeInt
, etc in thegraphql
package, but those methods only expect the raw value from thevalue
prop, not the node wrapper.The text was updated successfully, but these errors were encountered: