From 9869a481e0e0ac4022da9d1ad842fccb60feb272 Mon Sep 17 00:00:00 2001 From: Rhys Bartels-Waller Date: Tue, 26 Jan 2021 01:06:01 +1100 Subject: [PATCH] fix: GraphQL schema order_by - Adds SlotLeader_order_by - Transaction_order_by.block = Block_order_by - Removes duplicate param in blocks query --- packages/api-cardano-db-hasura/schema.graphql | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/api-cardano-db-hasura/schema.graphql b/packages/api-cardano-db-hasura/schema.graphql index b7a7d07e..d306ab47 100644 --- a/packages/api-cardano-db-hasura/schema.graphql +++ b/packages/api-cardano-db-hasura/schema.graphql @@ -522,6 +522,11 @@ input SlotLeader_bool_exp { stakePool: StakePool_bool_exp } +input SlotLeader_order_by { + hash: order_by + stakePool: StakePool_order_by +} + type StakePool { fixedCost: String! hash: Hash28Hex! @@ -783,7 +788,7 @@ type Transaction { } input Transaction_order_by { - block: order_by + block: Block_order_by blockIndex: order_by deposit: order_by fee: order_by @@ -1061,7 +1066,7 @@ input Block_bool_exp { input Block_order_by { forgedAt: order_by - slotLeader: order_by + slotLeader: SlotLeader_order_by epoch: Epoch_order_by fees: order_by hash: order_by @@ -1110,7 +1115,6 @@ type Epoch { blocks ( limit: Int order_by: [Block_order_by!] - order_by: [Block_order_by!] offset: Int where: Block_bool_exp ): [Block!]!