Skip to content

Commit

Permalink
chore: Change Hasura record limit from 100 to 2500
Browse files Browse the repository at this point in the history
Closes #333

BREAKING CHANGE: Omitting the limit in queries will now return 2500 records, rather than 100
  • Loading branch information
rhyslbw committed Nov 4, 2020
1 parent 27de54c commit 212bc47
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions packages/api-cardano-db-hasura/hasura/project/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- amount
- epochNo
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -103,7 +103,7 @@
- transactionsCount
- vrfKey
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -168,7 +168,7 @@
columns:
- address
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -217,7 +217,7 @@
- startedAt
- transactionsCount
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -251,7 +251,7 @@
- address
- amount
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -278,7 +278,7 @@
- rho
- tau
filter: {}
limit: 100
limit: 2500
- table:
schema: public
name: SlotLeader
Expand All @@ -298,7 +298,7 @@
- description
- hash
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -323,7 +323,7 @@
columns:
- address
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -388,7 +388,7 @@
- rewardAddress
- url
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -424,7 +424,7 @@
columns:
- inEffectFrom
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -449,7 +449,7 @@
columns:
- address
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -514,7 +514,7 @@
- size
- totalOutput
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -546,7 +546,7 @@
- sourceTxHash
- sourceTxIndex
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -569,7 +569,7 @@
- txHash
- index
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -597,7 +597,7 @@
- txHash
- index
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -623,7 +623,7 @@
- amount
- address
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -643,7 +643,7 @@
columns:
- hash
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand Down Expand Up @@ -672,7 +672,7 @@
- ipv6
- port
filter: {}
limit: 100
limit: 2500
allow_aggregations: true
- table:
schema: public
Expand All @@ -697,4 +697,4 @@
- json
- key
filter: {}
limit: 100
limit: 2500
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/test/blocks.query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('blocks', () => {
const result = await client.query({
query: await loadQueryNode('blockHashesNoArgs')
})
expect(result.data.blocks.length).toBe(100)
expect(result.data.blocks.length).toBe(2500)
})

it('allows custom pagination size with a limit and offset', async () => {
Expand Down

0 comments on commit 212bc47

Please sign in to comment.