-
-
Notifications
You must be signed in to change notification settings - Fork 820
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
Issue: mergeSchemas in graphql-tools v10 overwrites remote schemas instead of combining them. #5395
Comments
I couldn't understand how it overwrites the previous schema. Could you create a more isolated example without http endpoints in CodeSandbox? Thanks!
|
The problem might be only with remote schemas indeed. As the v4 works I was wondering if v10 should not work on the same way. I will check the schema stitching. |
You can see here that |
The mergeSchemas function in the graphql-tools package seems to have a problem when used with version 10.
Instead of combining schemas (remote executable) as expected, it ends up overwriting them.
In version 4.0, mergeSchemas properly combined executableSchema1 and executableSchema2, as shown in this screenshot:
Specific part where the schemas should be merged:
Full Code:
The full code with package.json and server.js can be found here:
https://github.com/inPhoenix/graphql-tools-testing
The text was updated successfully, but these errors were encountered: