-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
38 lines (38 loc) · 992 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: "http://localhost:4000"
documents: "src/**/*.graphql"
generates:
src/:
preset: near-operation-file
presetConfig:
baseTypesPath: graphql.ts
extension: .generated.tsx
plugins:
- typescript-operations
- typescript-react-apollo
config:
apolloClientVersion: 3
namingConvention:
typeNames: change-case#pascalCase
enumValues: change-case#upperCase
reactApolloVersion: 3
transformUnderscore: true
withComponent: false
withHOC: false
withHooks: true
withResultType: false
withMutationOptionsType: false
src/graphql/generated.d.ts:
config:
apolloClientVersion: 3
federation: true
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
- "typescript-graphql-files-modules"
- "typescript-document-nodes"
- "fragment-matcher"
./graphql.schema.json:
plugins:
- "introspection"