In order to use this GraphQL Codegen plugin, please make sure that you have GraphQL operations (
fragment) set as
documents: ... in your
Without loading your GraphQL operations (query, mutation, subscription and fragment), you won't see any change in the generated output.
This plugins generates a ready-to-use
TypedDocumentNode (a combination of pre-compiled
DocumentNode and the TypeScript signature it represents).
For information about the setup and usage of
TypedDocumentNode, please refer to the library's documentation.
This plugins requires
The example about will generate
TypedDocumentNode with the needed types built-in, for example: