-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
33 lines (33 loc) · 905 Bytes
/
Copy pathcodegen.yml
File metadata and controls
33 lines (33 loc) · 905 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
overwrite: true
schema: "https://graphql.icy.tools/graphql"
documents: "graphql/**/*.graphql"
generates:
types/generated/graphql.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
exportFragmentSpreadSubTypes: true
documentMode: graphQLTag
./graphql.schema.json:
plugins:
- "introspection"
types/generated/page.tsx:
config:
documentMode: external
importDocumentNodeExternallyFrom: ./graphql
reactApolloVersion: 3
withHooks: true
contextType: "ApolloClientContext"
contextTypeRequired: true
apolloClientInstanceImport: "../../libs/withApollo"
preset: import-types
presetConfig:
typesPath: ./graphql
plugins:
- "graphql-codegen-apollo-next-ssr"