Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
Pytal committed Jul 2, 2020
1 parent b103624 commit 6adb422
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# graphql-codegen-join-documents
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.

## Usage
Install the plugin:
``` bash
npm add -D graphql-codegen-join-documents
```

Enter the following into `codegen.yaml`:
``` yaml
schema: schema.graphql
documents: src/**/*.gql

generates:
queries.gql:
plugins:
- graphql-codegen-join-documents
```
Run codegen:
``` bash
npx graphql-codegen
```

0 comments on commit 6adb422

Please sign in to comment.