-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
31 lines (30 loc) · 811 Bytes
/
Copy pathcodegen.yml
File metadata and controls
31 lines (30 loc) · 811 Bytes
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
overwrite: true
schema: "./pkg/server/src/schema.ts"
documents:
- './**/*.graphql'
- './pkg/client/src/**/*.tsx'
- './pkg/client/src/**/*.ts'
- '!./pkg/client/src/generated/**'
- '!./pkg/server/src/generated/**'
- '!./pkg/client/node_modules/**'
- '!./pkg/server/node_modules/**'
generates:
pkg/server/src/generated/graphql.ts:
plugins:
- "typescript"
- "typescript-resolvers"
pkg/client/src/generated/introspectionQueryResultData.ts:
plugins:
- fragment-matcher
config:
apolloClientVersion: 3
pkg/client/src/generated/graphql-operations.ts:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
config:
withHOC: false
withHooks: true
withComponent: false
withMutationOptionsType: true