-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.json
35 lines (35 loc) · 1 KB
/
codegen.json
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
{
"hooks": {
"afterAllFileWrite": ["prettier --write"]
},
"overwrite": true,
"schema": ["${NEXT_PUBLIC_OXID_GRAPHQL_ENDPOINT}"],
"documents": "graphql/**/*.graphql",
"generates": {
"generated/types.ts": {
"plugins": ["typescript", "typescript-operations", "named-operations-object"]
},
"generated/graphql.tsx": {
"plugins": ["typescript", "typescript-operations", "typescript-react-apollo"]
},
"generated/graphql.schema.json": {
"plugins": ["introspection"]
},
"generated/pages.tsx": {
"config": {
"documentMode": "external",
"importDocumentNodeExternallyFrom": "./graphql",
"reactApolloVersion": 3,
"withHooks": true,
"contextType": "ApolloClientContext",
"contextTypeRequired": false,
"apolloClientInstanceImport": "@lib/withApollo"
},
"preset": "import-types",
"presetConfig": {
"typesPath": "./types"
},
"plugins": ["graphql-codegen-apollo-next-ssr"]
}
}
}