How to redifine Query & Mutation type for multiple schema ? #272
Answered
by
budde377
callmephil
asked this question in
Q&A
-
Hey ! I have multiple schemas (files) and each one of them has Query & Mutation Type declared in them. Example: Magic.graphql:
Power.graphql
When I'm running build_runner the code gen will not generate Query & Mutation for Power
I'm not sure if that is supported yet. But if it is anyone knows what I missed? |
Beta Was this translation helpful? Give feedback.
Answered by
budde377
Apr 27, 2023
Replies: 1 comment 4 replies
-
Take a look at scopes: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen#multiple-schemas |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems like a very strange use-case. In which cases would this happen? You can take a look at
extension
which will allow you to extend theQuery
in your example.