-
Notifications
You must be signed in to change notification settings - Fork 4
/
codegen.yml
58 lines (55 loc) · 1.45 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
schema: "packages/core/**/*.server.graphql"
generates:
packages/agent/src/agent/agent.generated.graphql.ts:
documents: "packages/agent/src/agent/*.graphql"
plugins:
- add:
content: "/* eslint-disable */"
- typescript
- typescript-graphql-request
- typescript-operations
config:
enumsAsTypes: true
avoidOptionals: true
rawRequest: true
./packages/core/:
documents: "packages/core/client/**/*.graphql"
preset: near-operation-file
config:
enumsAsTypes: true
avoidOptionals: true
presetConfig:
extension: .generated.graphql.ts
baseTypesPath: types.graphql.ts
plugins:
- add:
content: "/* eslint-disable */"
- typescript
- named-operations-object
- typescript-operations
- typescript-react-apollo
./packages/core/types.graphql.ts:
config:
enumsAsTypes: true
avoidOptionals: true
plugins:
- add:
content: "/* eslint-disable */"
- typescript
./packages/core/server/schema/typeDefs/index.ts:
plugins:
- add:
content: "/* eslint-disable */"
- typescript
- typescript-resolvers
- typescript-operations
- typed-document-node
config:
enumsAsTypes: true
avoidOptionals: true
contextType: ../context#Context
useIndexSignature: true
defaultMapper: DeepPartial<{T}>
scalars:
Date: Date
Void: void