forked from visualize-admin/visualization-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
38 lines (38 loc) · 1.37 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
overwrite: true
schema: "./app/graphql/schema.graphql"
documents: ["./app/graphql/queries/*.graphql"]
generates:
app/graphql/query-hooks.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-urql"
config:
nonOptionalTypename: true
preResolveTypes: true
withComponent: false
withHooks: true
app/graphql/resolver-types.ts:
plugins:
- "typescript"
- "typescript-resolvers"
config:
useIndexSignature: true
noSchemaStitching: true
scalars:
Observation: "../domain/data#Observation"
ObservationValue: "../domain/data#ObservationValue"
DimensionValue: "../domain/data#DimensionValue"
RawObservation: "../domain/data#RawObservation"
Filters: "../configurator#Filters"
GeoShape: "../domain/data#GeoShape"
mappers:
DataCube: "./shared-types#ResolvedDataCube"
ObservationsQuery: "./shared-types#ResolvedObservationsQuery"
Measure: "./shared-types#ResolvedMeasure"
Dimension: "./shared-types#ResolvedDimension"
GeoCoordinatesDimension: "./shared-types#ResolvedDimension"
GeoShapesDimension: "./shared-types#ResolvedDimension"
NominalDimension: "./shared-types#ResolvedDimension"
OrdinalDimension: "./shared-types#ResolvedDimension"
TemporalDimension: "./shared-types#ResolvedDimension"