-
Notifications
You must be signed in to change notification settings - Fork 6
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
[feature] Merge query #3
Comments
Anyway we can create a function to merge our schemas/resolvers then use this package to merge merged schemas with the one of |
I'm sorry, I can't understand what you want to achieve. Can you show me an example? |
If I load two schemas :
typeDefsOne :
typeDefsTwo :
So if I load these both schemas and then this error is thrown |
Are you using |
As this package doesn't merge queries if I load two separate |
Maybe you're using this wrong, because that's exactly what this package does |
I wish it was the case but if I have multiple |
Hey @nicolaslopezj, @NitroBAY is correct. If you have typeDefs with duplicate types, you'll encounter an error. For instance, As an example, your
This prevents applications from having their own Mutations. |
@NitroBAY You can use this library for stitching the schema that way. You can also define |
Hello,
You allows to split schemas/resolvers in different files however we cannot define more than one
Query
otherwise the errorError: Must provide only one query type in schema
is thrown. See apollographql/apollo-server#43 to find solutions to merge queries into a single one.The text was updated successfully, but these errors were encountered: