forked from aave/aave-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
46 lines (46 loc) · 1.39 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
overwrite: true
hooks:
afterAllFileWrite:
- prettier --single-quote --write
schema: 'https://api.thegraph.com/subgraphs/name/aave/protocol-v2-kovan'
watch: true
config:
withHOC: false
withComponent: false
withMutationFn: false
withHooks: true
reactApolloVersion: 3
apolloReactHooksImportFrom: '@apollo/client'
apolloReactCommonImportFrom: '@apollo/client'
generates:
src/libs/pool-data-provider/graphql/fragmentTypes.json:
plugins:
- fragment-matcher
src/libs/pool-data-provider/graphql/index.tsx:
schema:
- https://api.thegraph.com/subgraphs/name/aave/aave-v2-matic
- ./client-schema.graphql
documents:
- ./src/libs/pool-data-provider/graphql/*.graphql
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
src/libs/governance-provider/graphql/index.tsx:
schema:
- https://api.thegraph.com/subgraphs/name/aave/governance-v2-kovan
documents:
- ./src/libs/governance-provider/graphql/*.graphql
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
src/libs/caching-server-data-provider/graphql/index.tsx:
schema:
- https://cache-api-mainnet.aave.com/graphql
documents:
- ./src/libs/caching-server-data-provider/graphql/*.graphql
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'