-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
28 lines (28 loc) · 835 Bytes
/
codegen.yml
File metadata and controls
28 lines (28 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
overwrite: true
schema: "schema.graphql"
documents: "src/**/*.graphql"
hooks:
afterAllFileWrite:
- node scripts/addToPersistedOperations.js
generates:
src/graphql.client.json:
plugins:
- graphql-codegen-persisted-query-ids:
output: client
algorithm: sha256
src/graphql.server.json:
plugins:
- graphql-codegen-persisted-query-ids:
output: server
algorithm: sha256
src/types/generated/graphql.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-document-nodes"
src/types/generated/queries.d.ts:
plugins:
- "typescript-graphql-files-modules"
src/graphql.schema.json:
plugins:
- "introspection"