-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
34 lines (30 loc) · 901 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
overwrite: true
schema: "https://api-sa-east-1.hygraph.com/v2/cl81dz6gp156u01t909ms5921/master"
documents: "./src/graphql/**/*.gql"
generates:
src/graphql/generated/graphql.tsx:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
exportFragmentSpreadSubTypes: true
documentMode: graphQLTag
src/graphql/generated/ssr.tsx:
config:
documentMode: external
importDocumentNodeExternallyFrom: ./graphql
reactApolloVersion: 3
withHooks: true
contextType: 'ApolloClientContext'
contextTypeRequired: true
apolloClientInstanceImport: '../../lib/apollo/withApollo'
preset: import-types
presetConfig:
typesPath: ./graphql
plugins:
- 'graphql-codegen-apollo-next-ssr'