-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathcodegen.yml
More file actions
29 lines (27 loc) · 820 Bytes
/
codegen.yml
File metadata and controls
29 lines (27 loc) · 820 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
overwrite: true
schema: https://gateway.thegraph.com/api/${NEXT_PUBLIC_SUBGRAPH_API_KEY}/subgraphs/id/${NEXT_PUBLIC_SUBGRAPH_ID}
documents: ./queries/**/*.graphql
generates:
./apollo/subgraph.ts:
plugins:
- add:
content: |
/**
* @generated
* This file was automatically generated and should not be edited.
* To add new queries, mutations, or subscriptions, create or update files in the queries folder.
*/
- typescript
- typescript-operations
- typescript-react-apollo
config:
withHooks: true
nonOptionalTypename: true
exportFragmentSpreadSubTypes: true
config:
scalars:
BigInt: string
BigDecimal: string
hooks:
afterAllFileWrite:
- pnpm prettier --write ./apollo/subgraph.ts