-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcodegen.yml
37 lines (37 loc) · 978 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
33
34
35
36
37
overwrite: true
schema: 'https://strapi-production-431a.up.railway.app/graphql'
documents: 'cabServer/**/*.graphql'
generates:
cabServer/global/__generated__/types.ts:
plugins:
- 'typescript'
cabServer/global/__generated__:
preset: near-operation-file
presetConfig:
folder: __generated__
baseTypesPath: types.ts
extension: .ts
plugins:
- 'typescript-react-apollo'
- 'typescript-operations'
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
# cabServer/__generated__/page.tsx:
# config:
# reactApolloVersion: 3
# withHooks: true
# documentMode: external
# importDocumentNodeExternallyFrom: ./operations
# preset: import-types
# presetConfig:
# typesPath: ./graphql
# plugins:
# - graphql-codegen-apollo-next-ssr
# # Format files
# hooks:
# afterAllFileWrite:
# - prettier --write
# - eslint --fix