-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
72 lines (71 loc) · 1.79 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
overwrite: true
schema: "http://localhost:4000/api/v1/graphql"
#documents:
# - "queries.graphql"
# - "mutations.graphql"
generates:
src/bindings/typescript.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-resolvers"
src/bindings/react-query.ts:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-query"
config:
fetcher: "fetch"
withHooks: true
src/bindings/react-apollo-urql.ts:
plugins:
- "typescript"
- "typescript-operations"
src/bindings/react-apollo.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
config:
withHooks: true
src/bindings/urql.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-urql"
config:
withHooks: true
src/bindings/vue-urql.ts:
plugins:
- typescript
- typescript-operations
- typescript-vue-urql
src/bindings/vue-apollo.ts:
plugins:
- typescript
- typescript-operations
- typescript-vue-apollo-smart-ops
src/bindings/angular-apollo.ts:
plugins:
- typescript
- typescript-operations
- typescript-apollo-angular
src/bindings/apollo-yoga.ts:
config:
useIndexSignature: true
plugins:
- typescript
- typescript-resolvers
# src/bindings/modules/:
# preset: graphql-modules
# presetConfig:
# baseTypesPath: ../generated-types/graphql.ts # Where to create the complete schema types
# filename: generated-types/module-types.ts # Where to create each module types
# plugins:
# - add:
# content: '/* eslint-disable */'
# - typescript
# - typescript-resolvers
# src/bindings/graphql.schema.json:
# plugins:
# - "introspection"