-
Notifications
You must be signed in to change notification settings - Fork 3
/
.graphqlrc.yml
61 lines (61 loc) · 1.76 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
overwrite: true
schema: 'https://graphql-staging.audioverse.org/graphql'
documents: 'src/**/*.graphql'
generates:
./schema.graphql:
plugins:
- add:
content:
- '# ------------------------------------------------------'
- '# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)'
- '# ------------------------------------------------------ '
- schema-ast
src/__generated__/graphql.ts:
plugins:
- 'typescript'
config:
enumsAsConst: true
avoidOptionals: true
defaultScalarType: unknown
scalars:
ID: 'string | number'
Date: 'string'
DateTime: 'string'
RelativeDateTime: 'string'
URL: 'string'
src/__generated__/prefetch.ts:
plugins:
- 'graphql-codegen/dist/graphql-plugin-prefetch.js'
src/__generated__/loaders.ts:
plugins:
- 'graphql-codegen/dist/graphql-plugin-loaders.js'
src/__generated__/mock-data.ts:
plugins:
- 'typescript-mock-data':
prefix: 'make'
terminateCircularRelationships: true
typesFile: './graphql.ts'
src/:
preset: near-operation-file
presetConfig:
baseTypesPath: __generated__/graphql.ts
extension: .ts
folder: __generated__
plugins:
- 'typescript-operations'
- 'typescript-react-query'
- 'graphql-codegen/dist/graphql-plugin-getters.js'
config:
fetcher: '~lib/api/graphqlFetcher#graphqlFetcher'
addInfiniteQuery: true
reactQueryVersion: 5
legacyMode: false
dedupeFragments: true
avoidOptionals: true
defaultScalarType: unknown
scalars:
ID: 'string | number'
Date: 'string'
DateTime: 'string'
RelativeDateTime: 'string'
URL: 'string'