-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yaml
45 lines (44 loc) · 1.15 KB
/
codegen.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
schema:
- graphql/directives.graphql
- graphql/schema.graphql
documents:
- "./graphql/queries/**/*.graphql"
generates:
# ./graphql/compiled/types.ts:
# plugins:
# - add:
# content: "// This file was generated by GraphQL Codegen, do not edit manually!"
# - typescript
# ./graphql/compiled/operations.ts:
# plugins:
# - typescript
# - typescript-operations
./graphql/compiled/collection.ts:
plugins:
- add:
content:
- "// This file was generated by GraphQL Codegen, do not edit manually!"
- "// @ts-ignore"
- ""
- typescript
- typescript-operations
- typescript-react-apollo
config:
reactApolloVersion: 3
skipTypename: true
skipTypeNameForRoot: true
immutableTypes: true
strictScalars: true
withHooks: true
useTypeImports: true
dedupeFragments: true
declarationKind:
type: "interface"
scalars:
JsonType: Record<string, any>
hooks:
afterAllFileWrite:
- prettier --write
./graphql/compiled/schema.json:
plugins:
- introspection