forked from public-convenience-ltd/toiletmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
32 lines (32 loc) · 855 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
overwrite: true
schema: 'src/api/schema.graphql'
documents: 'src/api-client/operations/*.graphql'
generates:
src/@types/resolvers-types.ts:
plugins:
- typescript
- typescript-resolvers
src/api-client/graphql.tsx:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
exportFragmentSpreadSubTypes: true
documentMode: graphQLTag
src/api-client/page.tsx:
config:
documentMode: external
importDocumentNodeExternallyFrom: ./graphql
reactApolloVersion: 3
withHooks: true
apolloClientInstanceImport: './withApollo'
preset: import-types
presetConfig:
typesPath: ./graphql
plugins:
- graphql-codegen-apollo-next-ssr