-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathcodegen.yml
28 lines (28 loc) · 870 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
schema: "server/src/schema/schema.graphql"
documents:
- "client/src/**/*.graphql"
overwrite: true
generates:
server/src/resolvers/generated-types.ts:
config:
contextType: ../context#IContext
scalars:
Date: Date
DateTime: Date
namingConvention:
enumValues: change-case#upperCase
mappers:
Flight: ../api/OpenSkyNetworkApi#IOpenSkyApiStateResponse
Trajectory: ../api/OpenSkyNetworkApi#IOpenSkyApiTrajectoryResponse
Route: ../api/OpenSkyNetworkApi#IOpenSkyApiRouteResponse
Airport: ../api/OpenSkyNetworkApi#IOpenSkyApiAirportResponse
plugins:
- typescript
- typescript-resolvers
client/src/data/generated-types.tsx:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
- typescript-compatibility
- fragment-matcher