-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
38 lines (38 loc) · 1007 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
36
37
38
overwrite: true
schema:
- 'schema.graphql'
generates:
src/lib/gql/generated/introspection-result.tsx:
documents:
- ./src/lib/gql/documents/**/*.ts
- ./src/lib/gql/custom/**/*.ts
- '!./src/lib/gql/generated/**/*.{ts,tsx}'
plugins:
- fragment-matcher
src/lib/gql/generated/original/types.tsx:
documents:
- ./src/lib/gql/documents/**/*.ts
- ./src/lib/gql/custom/**/*.ts
- '!./src/lib/gql/generated/**/*.{ts,tsx}'
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
config:
apolloReactCommonImportFrom: '@apollo/react-common'
apolloReactComponentsImportFrom: '@apollo/react-components'
constEnums: true
reactApolloVersion: 3
declarationKind: 'interface'
withHOC: false
withComponent: false
withHooks: false
dedupeOperationSuffix: true
scalars:
DateTime: Date
Timestamp: number
Decimal: number
UUID: string
Coordinates: LatLonCoordinates
ID: string
Upload: File