-
Notifications
You must be signed in to change notification settings - Fork 6
/
codegen.yml
32 lines (28 loc) · 727 Bytes
/
codegen.yml
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
29
30
31
32
schema: src/graphql/build-schema.js
documents:
- "src/**/*.graphql"
# This should be updated to match your client files
# documents: 'client/**/!(*.d).{ts,tsx}'
generates:
# This will take your schema and print an SDL schema.
schema.graphql:
plugins:
- schema-ast
src/graphql/types.generated.ts:
plugins:
- typescript
src/graphql/introspection.json:
plugins:
- introspection:
minify: true
src/:
preset: near-operation-file
presetConfig:
extension: .generated.tsx
baseTypesPath: graphql/types.generated.ts
plugins:
- typescript-operations:
strictScalars: true
scalars:
Date: number
- typed-document-node