Skip to content

Commit 6adb422

Browse files
committed
Add README
1 parent b103624 commit 6adb422

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# graphql-codegen-join-documents
2+
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.
3+
4+
## Usage
5+
Install the plugin:
6+
``` bash
7+
npm add -D graphql-codegen-join-documents
8+
```
9+
10+
Enter the following into `codegen.yaml`:
11+
``` yaml
12+
schema: schema.graphql
13+
documents: src/**/*.gql
14+
15+
generates:
16+
queries.gql:
17+
plugins:
18+
- graphql-codegen-join-documents
19+
```
20+
21+
Run codegen:
22+
``` bash
23+
npx graphql-codegen
24+
```

0 commit comments

Comments
 (0)