-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
42 lines (42 loc) · 1014 Bytes
/
codegen.yml
File metadata and controls
42 lines (42 loc) · 1014 Bytes
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
schema: "https://graphql.anilist.co"
documents: "client/**/*.graphql"
generates:
client/src/generated/types.ts:
plugins:
- typescript
config:
avoidOptionals: true
skipTypename: true
useTypeImports: true
scalars:
Int: number
Float: number
String: string
Boolean: boolean
ID: string
CountryCode: string
client/src/generated/operations.ts:
plugins:
- typescript-operations
config:
avoidOptionals: true
skipTypename: true
useTypeImports: true
importSchemaTypesFrom: client/src/generated/types
namespacedImportName: Types
scalars:
Int: number
Float: number
String: string
Boolean: boolean
ID: string
CountryCode: string
client/src/generated/graphql.ts:
plugins:
- add:
content: |
export * from "./types";
export * from "./operations";
schema.graphql:
plugins:
- schema-ast