-
Notifications
You must be signed in to change notification settings - Fork 8
/
codegen.yaml
39 lines (38 loc) · 958 Bytes
/
codegen.yaml
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
definitions:
add: &top-comment
content: >
/**
* NOTE: THIS IS AN AUTO-GENERATED FILE. DO NOT MODIFY IT DIRECTLY.
*/
/* eslint-disable */
schema: https://api2.mapofzones.com/v1/graphql
overwrite: true
documents: 'src/graphql/v2/**/!(*.generated).{graphql,tsx,ts}'
hooks:
afterAllFileWrite:
- prettier --write
generates:
./src/graphql/server-schema.graphql:
plugins:
- schema-ast
./src/graphql/base-types.ts:
plugins:
- add: *top-comment
- typescript
./src/:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: graphql/base-types.ts
folder: __generated__
plugins:
- add: *top-comment
- typescript-operations
- typed-document-node
config:
namingConvention: change-case-all#pascalCase
transformUnderscore: true
constEnums: true
preResolveTypes: true
operationResultSuffix: 'Result'
skipTypename: true