From e04e30ae91a9597d89cf7cabb93f7aa38f35ce87 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 1 Aug 2024 19:00:58 +0530 Subject: [PATCH] Update GQL schema types with arguments on plural fields --- src/schema.gql | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/schema.gql b/src/schema.gql index 7599048..fa61ae5 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -1632,14 +1632,14 @@ type User { id: ID! createdAt: BigInt! transactionCount: BigInt! - transactions: [Transaction!]! + transactions (orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]! orderCount: BigInt! - orders: [Order!]! + orders (orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]! liquidationCount: BigInt! - liquidations: [Liquidation!]! + liquidations (orderBy: Liquidation_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Liquidation!]! transferCount: BigInt! - transfers: [Transfer!]! - deposits: [Deposit!]! + transfers (orderBy: Transfer_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transfer!]! + deposits (orderBy: Deposit_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Deposit!]! } type Order { @@ -1657,7 +1657,7 @@ type Order { lendingMarket: LendingMarket! isPreOrder: Boolean! type: OrderType! - transactions: [Transaction!]! + transactions (orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]! isCircuitBreakerTriggered: Boolean! createdAt: BigInt! blockNumber: BigInt! @@ -1669,10 +1669,10 @@ type LendingMarket { currency: Bytes! maturity: BigInt! isActive: Boolean! - transactions: [Transaction!]! - orders: [Order!]! + transactions (orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]! + orders (orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]! volume: BigInt! - dailyVolume: [DailyVolume!]! + dailyVolume (orderBy: DailyVolume_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [DailyVolume!]! openingUnitPrice: BigInt! lastLendUnitPrice: BigInt! lastBorrowUnitPrice: BigInt!