-
Notifications
You must be signed in to change notification settings - Fork 4
/
codegen.yml
35 lines (34 loc) · 932 Bytes
/
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
overwrite: true
generates:
# Generate types for chat
src/graphql/schema/chat.gen.ts:
schema: 'https://chat.discours.io'
documents:
- 'src/graphql/query/chat/**/*.ts'
- 'src/graphql/mutation/chat/**/*.ts'
plugins:
- 'typescript'
- 'typescript-operations'
# - 'typescript-urql'
config:
skipTypename: true
useTypeImports: true
outputPath: './src/graphql/types/chat.gen.ts'
scalars:
DateTime: string
# Generate types for core
src/graphql/schema/core.gen.ts:
schema: 'https://core.discours.io'
documents:
- 'src/graphql/query/core/**/*.ts'
- 'src/graphql/mutation/core/**/*.ts'
plugins:
- 'typescript'
- 'typescript-operations'
# - 'typescript-urql'
config:
skipTypename: true
useTypeImports: true
outputPath: './src/graphql/types/core.gen.ts'
scalars:
DateTime: string