-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
35 lines (35 loc) · 999 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
schema:
- "https://graphql.datocms.com/":
headers:
Authorization: Bearer f2859b89942f0d5c3a17301a930f72
config:
defaultScalarType: unknown
useTypeImports: true
avoidOptionals: true
namingConvention:
enumValues: change-case-all#upperCaseFirst
scalars:
DateTime: string
FloatType: number
BooleanType: boolean
IntType: number
JsonField: react-datocms#StructuredTextDocument # Unsure this field has purposes other than this.
MetaTagAttributes: Record<string, string> # Not my choice, it was copied from react-datocms
ItemId: string
generates:
app/graphql/generated.ts:
documents:
- "./app/**/*.ts"
- "./app/**/*.tsx"
- "./app/fragments.graphql"
plugins:
- typescript
- typescript-operations
app/graphql/fragments.ts:
documents:
- "./app/fragments.graphql"
plugins:
- typescript-document-nodes
config:
importOperationTypesFrom: ./generated
gqlImport: ~/utils/dato#gql