-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodegen.yml
57 lines (57 loc) · 1.56 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
generates:
./src/graphql/types.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- typescript
config:
scalars:
ISO8601Date: string
ISO8601DateTime: string
./:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
documents: '**/*.graphql'
preset: near-operation-file
presetConfig:
baseTypesPath: src/graphql/types.generated.ts
plugins:
- typescript-operations
- typescript-react-apollo
config:
preResolveTypes: false
./src/graphql/schema.graphql:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- schema-ast
./src/graphql/possibleTypes.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- fragment-matcher
./pages/api/graphql-rest.page.generated.ts:
schema:
- ${API_URL:https://api.stage.mpdx.org/graphql}
- ./pages/api/Schema/**/*.graphql
plugins:
- typescript
- typescript-resolvers
config:
useIndexSignature: true
contextType: ./graphql-rest.page#Context
scalars:
ISO8601Date: string
ISO8601DateTime: string
./src/graphql/rootFields.generated.ts:
schema: ${API_URL:https://api.stage.mpdx.org/graphql}
plugins:
- ./extractRootFields.js
hooks:
afterAllFileWrite:
- prettier --write
- node deleteStaleFiles.mjs