You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to generate code for more than one GraphQL schema and service? I want
each schema to be generated into separate typescript files
generated hooks/functions for each schema to automatically specify client property
One way to do this would be to create two separate graphql-codegen configs that are configured independently. Is there a way to do it with a single codegen configuration?
I was thinking that the generated code would work something like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to generate code for more than one GraphQL schema and service? I want
clientpropertyOne way to do this would be to create two separate graphql-codegen configs that are configured independently. Is there a way to do it with a single codegen configuration?
I was thinking that the generated code would work something like this:
Codegen could use the tags to differentiate between the services/schemas. Generated React hook code (minus types for brevity) would look like this:
Beta Was this translation helpful? Give feedback.
All reactions