graphql-codegen-join-documents
v1.0.0
Published
A plugin for [GraphQL Code Generator](https://graphql-code-generator.com/docs/getting-started/index) to join GraphQL queries/mutations/subscriptions together into a single file.
Downloads
6
Readme
graphql-codegen-join-documents
A plugin for GraphQL Code Generator to join GraphQL queries/mutations/subscriptions together into a single file.
Usage
Install the plugin:
npm add -D graphql-codegen-join-documents
Enter the following into codegen.yaml
:
schema: schema.graphql
documents: src/**/*.gql
generates:
queries.gql:
plugins:
- graphql-codegen-join-documents
Run codegen:
npx graphql-codegen