-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodegen.yml
65 lines (65 loc) · 1.7 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
overwrite: true
hooks:
afterAllFileWrite:
- prettier --write
schema: 'graphql/schema.graphql'
documents: 'graphql/typeDefs/**/*.graphql'
generates:
graphql/generated/schemaType.ts:
plugins:
- 'typescript'
graphql/fragmentTypes.json:
plugins:
- fragment-matcher
config:
apolloClientVersion: 3
useExplicitTyping: true
graphql/graphql.schema.json:
plugins:
- 'introspection'
graphql/generated.tsx:
plugins:
- add:
content: /* eslint-disable import/order */
- 'typescript'
- 'typescript-operations'
- 'typescript-resolvers'
- 'typescript-react-apollo'
config:
withHooks: true
withHOC: false
contextType: 'graphql/context#IContext'
withComponent: false
useIndexSignature: true
documentMode: 'external'
importDocumentNodeExternallyFrom: './documents'
namingConvention: keep
dedupeOperationSuffix: true
operationResultSuffix: Result
nonOptionalTypename: true
preResolveTypes: true
exportFragmentSpreadSubTypes: true
apolloClientVersion: 3
scalars:
Date: Date
JSON: '{ [key: string]: any }'
mapperTypeSuffix: Model
mappers:
User: '@prisma/client/index.d#User'
graphql/documents.ts:
plugins:
- add:
content: /* eslint-disable */
- 'typescript-document-nodes'
config:
namingConvention: keep
dedupeOperationSuffix: true
operationResultSuffix: Result
nonOptionalTypename: true
apolloClientVersion: 3
scalars:
Date: Date
JSON: '{ [key: string]: any }'
graphql/apollo-helpers.ts:
plugins:
- typescript-apollo-client-helpers