-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
30 lines (30 loc) · 764 Bytes
/
codegen.yml
File metadata and controls
30 lines (30 loc) · 764 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
29
30
schema: ${REACT_APP_API_BASE_URL}/graphql
documents:
- src/graphql/*.gql
generates:
src/generated/schema.ts:
plugins:
- add:
content: '/* eslint-disable */'
- add:
content: "// @ts-nocheck"
- typescript
- typescript-operations
- typescript-react-apollo
config:
apolloReactHooksImportFrom: "@apollo/client"
enumsAsTypes: true
immutableTypes: true
maybeValue: "T"
skipTypename: false
strict: true
useTypeImports: true
withComponent: false
withHOC: false
withHooks: true
withMutationFn: false
withMutationOptionsType: false
withResultType: false
scalars:
JSON: "Record<any, any>"
Json: "Record<any, any>"