-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcodegen.yml
More file actions
30 lines (30 loc) · 885 Bytes
/
codegen.yml
File metadata and controls
30 lines (30 loc) · 885 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
schema: "./server/src/modules/graphql/modules/**/*.graphql.ts"
documents:
- "./client/src/modules/graphql/**/*.{gql,graphql,ts,js,tsx,jsx}"
- "!./client/src/modules/graphql/__generated__"
generates:
./client/src/modules/graphql/graphql.gen.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
config:
useExplicitTyping: true
./server/src/modules/graphql/modules:
preset: graphql-modules
presetConfig:
baseTypesPath: ../__generated__/graphql.types.gen.ts
filename: __generated__/module.types.gen.ts
plugins:
- add:
content: '/* eslint-disable */'
- "typescript"
- "typescript-resolvers"
config:
contextType: GraphQLModules.Context
useIndexSignature: true
./graphql.schema.json:
plugins:
- "introspection"
config:
minify: true