Skip to content

[typescript-operations] Any way to automatically add a field to queries if it exists in the schema? #4656

Answered by dotansimha
threehams asked this question in General
Discussion options

You must be logged in to vote

Hi @threehams
Codegen doesn't do schema/operations manipulations or that level. You can do that with a custom document loader: https://graphql-code-generator.com/docs/getting-started/documents-field#custom-document-loader

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dotansimha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants