-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
35 lines (31 loc) · 951 Bytes
/
codegen.yml
File metadata and controls
35 lines (31 loc) · 951 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
31
32
33
34
35
overwrite: true
schema: 'http://localhost:3333/graphql'
generates:
src/graphql/generated/graphql.tsx:
documents: './src/graphql/**/*.graphql'
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
exportFragmentSpreadSubTypes: true
documentMode: graphQLTag
# src/graphql/generated/page.tsx:
# documents: './src/graphql/private/**/*.graphql'
# config:
# documentMode: external
# importDocumentNodeExternallyFrom: ./graphql
# reactApolloVersion: 3
# withHooks: true
# contextType: 'ApolloClientContext'
# contextTypeRequired: true
# apolloClientInstanceImport: 'src/lib/withPrivateApollo'
# preset: import-types
# presetConfig:
# typesPath: ./graphql
# plugins:
# - 'graphql-codegen-apollo-next-ssr'