-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
38 lines (36 loc) · 921 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
# Run codegen using: npm run generate
# Make sure the schema endpoint is accessible!
schema: http://localhost:3000/graphql
documents:
- >
query BifrostMinted($dateFrom: Datetime) {
salpLiteIssueds(filter: {blockTimestamp: {greaterThanOrEqualTo: $dateFrom}}, orderBy: BLOCK_TIMESTAMP_ASC) {
nodes {
account
balance
blockHeight
blockTimestamp
paraId
}
totalCount
}
}
- >
query BifrostRedeemed($dateFrom: Datetime) {
salpLiteRedeemeds(filter: {blockTimestamp: {greaterThanOrEqualTo: $dateFrom}}, orderBy: BLOCK_TIMESTAMP_ASC) {
nodes {
account
balance
blockHeight
blockTimestamp
paraId
}
totalCount
}
}
generates:
./src/types.ts:
plugins:
- typescript
- typescript-operations
- typescript-graphql-request