-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.graphqlrc.yml
46 lines (46 loc) · 1.29 KB
/
.graphqlrc.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
40
41
42
43
44
45
46
overwrite: true
schema: "https://api-eu-central-1.graphcms.com/v2/cl04864ta158801xo95gsh9od/master"
documents: "graphql/*.graphql"
extensions:
codegen:
generates:
./generated/graphql.tsx:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
immutableTypes: true
dedupeOperationSuffix: true
useTypeImports: true
scalars:
DateTime: string
UUID: string
JSONString: string
./generated/page.tsx:
config:
reactApolloVersion: 3
documentMode: external
importDocumentNodeExternallyFrom: ./graphql
withHooks: false
withHOC: false
apolloClientInstanceImport: '../lib/apolloClient'
scalars:
DateTime: string
UUID: string
JSONString: string
preset: import-types
presetConfig:
typesPath: ./graphql
plugins:
- graphql-codegen-apollo-next-ssr
generated/graphql.schema.json:
plugins:
- "introspection"
hooks:
afterAllFileWrite:
- prettier --write