-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcodegen.yml
58 lines (54 loc) · 1.54 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: ./schema/**/*.graphql
generates:
src/server/schema/typeDefs.graphql:
plugins:
- schema-ast
config:
includeDirectives: true
src/server/schema/resolvers/definitions.ts:
plugins:
- add:
content: '/* eslint-disable */'
- typescript
- typescript-resolvers
config:
contextType: ../context#Context
rootValueType: ../context#RootDocument
noSchemaStitching: true
skipTypename: true
preResolveTypes: true
typesPrefix: GraphQL
mappers:
User: ../../database#User
UserSession: ../../database#UserSession
SystemMessage: ../../utils/systemMessage#SystemMessage
AuthenticationResponse: ./typings#AuthenticationResponse
ExternalLink: ../../database#ExternalLink
ResetPasswordLink: ../../database#ResetPasswordLink
enumValues: ./enums
scalars:
DateTime: Date
ObjectID: mongodb#ObjectId
Upload: ../context#FileUploadPromise
src/app/api/introspection.ts:
documents: ./src/app/api/**/*.graphql
plugins:
- add:
content: '/* eslint-disable */'
- fragment-matcher
src/app/api/index.ts:
documents: ./src/app/api/**/*.graphql
plugins:
- add:
content: '/* eslint-disable */'
- typescript
- typescript-operations
- typescript-react-apollo
config:
documentMode: documentNode
pureMagicComment: true
preResolveTypes: true
scalars:
ObjectID: string
DateTime: string | Date
Upload: File