-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcodegen.yml
39 lines (39 loc) · 1.06 KB
/
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
35
36
37
38
39
overwrite: true
schema:
${NEXT_PUBLIC_HASURA_GRAPHQL_DOCKER_URL}:
headers:
"x-hasura-admin-secret": ${HASURA_ADMIN_SECRET}
documents: 'src/graphql/**/*.graphql'
generates:
src/graphql/generated/sdk.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-graphql-request"
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/page.tsx:
config:
documentMode: external
importDocumentNodeExternallyFrom: ./graphql
reactApolloVersion: 3
withHooks: true
apolloClientInstanceImport: '../../utils/apolloClient'
preset: import-types
presetConfig:
typesPath: ./graphql
plugins:
- "graphql-codegen-apollo-next-ssr"
src/graphql/generated/graphql.schema.json:
plugins:
- "introspection"