forked from planetarium/9c-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
40 lines (40 loc) · 1013 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
39
40
overwrite: true
schema: ./src/schema.graphql
documents: ./src/api.graphql
generates:
src/generated/graphql.tsx:
plugins:
- typescript
- typescript-operations
- typescript-resolvers
- typescript-react-apollo
config:
reactApolloVersion: 2
withHooks: true
withMutationFn: true
scalars:
Address: ../mappers#Address
ByteString: ../mappers#ByteStringHex
src/generated/graphql-request.ts:
plugins:
- typescript
- typescript-operations
- typescript-resolvers
- typescript-graphql-request
config:
rawRequest: true
src/v2/generated/graphql.tsx:
plugins:
- typescript
- typescript-operations
- typescript-resolvers
- typescript-react-apollo
config:
reactApolloVersion: 3
withHooks: true
withMutationFn: true
withComponent: false
withHOC: false
scalars:
Address: ../../mappers#Address
ByteString: ../../mappers#ByteStringHex