Regenerate GQL queries with args on plural fields

This commit is contained in:
Prathamesh Musale 2024-08-05 16:44:57 +05:30
parent 805a8b2097
commit c55ceb1476
7 changed files with 36 additions and 36 deletions

View File

@ -1,10 +1,10 @@
query lendingMarket($id: ID!, $block: Block_height){
query lendingMarket($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $where1: Order_filter, $orderBy1: Order_orderBy, $orderDirection1: OrderDirection, $first1: Int, $skip1: Int, $where2: DailyVolume_filter, $orderBy2: DailyVolume_orderBy, $orderDirection2: OrderDirection, $first2: Int, $skip2: Int, $id: ID!, $block: Block_height){
lendingMarket(id: $id, block: $block){
id
currency
maturity
isActive
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity
@ -19,7 +19,7 @@ query lendingMarket($id: ID!, $block: Block_height){
blockNumber
txHash
}
orders{
orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id
orderId
currency
@ -38,7 +38,7 @@ query lendingMarket($id: ID!, $block: Block_height){
txHash
}
volume
dailyVolume{
dailyVolume(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id
currency
maturity

View File

@ -1,10 +1,10 @@
query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderBy: LendingMarket_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
lendingMarkets(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
query lendingMarkets($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $where1: Order_filter, $orderBy1: Order_orderBy, $orderDirection1: OrderDirection, $first1: Int, $skip1: Int, $where2: DailyVolume_filter, $orderBy2: DailyVolume_orderBy, $orderDirection2: OrderDirection, $first2: Int, $skip2: Int, $block: Block_height, $where3: LendingMarket_filter, $orderBy3: LendingMarket_orderBy, $orderDirection3: OrderDirection, $first3: Int, $skip3: Int){
lendingMarkets(block: $block, where: $where3, orderBy: $orderBy3, orderDirection: $orderDirection3, first: $first3, skip: $skip3){
id
currency
maturity
isActive
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity
@ -19,7 +19,7 @@ query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderB
blockNumber
txHash
}
orders{
orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id
orderId
currency
@ -38,7 +38,7 @@ query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderB
txHash
}
volume
dailyVolume{
dailyVolume(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id
currency
maturity

View File

@ -1,4 +1,4 @@
query order($id: ID!, $block: Block_height){
query order($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $id: ID!, $block: Block_height){
order(id: $id, block: $block){
id
orderId
@ -31,7 +31,7 @@ query order($id: ID!, $block: Block_height){
}
isPreOrder
type
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity

View File

@ -1,5 +1,5 @@
query orders($block: Block_height, $where: Order_filter, $orderBy: Order_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
orders(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
query orders($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $block: Block_height, $where1: Order_filter, $orderBy1: Order_orderBy, $orderDirection1: OrderDirection, $first1: Int, $skip1: Int){
orders(block: $block, where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id
orderId
user{
@ -31,7 +31,7 @@ query orders($block: Block_height, $where: Order_filter, $orderBy: Order_orderBy
}
isPreOrder
type
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity

View File

@ -1,9 +1,9 @@
query user($id: ID!, $block: Block_height){
query user($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $where1: Order_filter, $orderBy1: Order_orderBy, $orderDirection1: OrderDirection, $first1: Int, $skip1: Int, $where2: Liquidation_filter, $orderBy2: Liquidation_orderBy, $orderDirection2: OrderDirection, $first2: Int, $skip2: Int, $where3: Transfer_filter, $orderBy3: Transfer_orderBy, $orderDirection3: OrderDirection, $first3: Int, $skip3: Int, $where4: Deposit_filter, $orderBy4: Deposit_orderBy, $orderDirection4: OrderDirection, $first4: Int, $skip4: Int, $id: ID!, $block: Block_height){
user(id: $id, block: $block){
id
createdAt
transactionCount
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity
@ -19,7 +19,7 @@ query user($id: ID!, $block: Block_height){
txHash
}
orderCount
orders{
orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id
orderId
currency
@ -38,7 +38,7 @@ query user($id: ID!, $block: Block_height){
txHash
}
liquidationCount
liquidations{
liquidations(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id
collateralCurrency
debtCurrency
@ -49,7 +49,7 @@ query user($id: ID!, $block: Block_height){
txHash
}
transferCount
transfers{
transfers(where: $where3, orderBy: $orderBy3, orderDirection: $orderDirection3, first: $first3, skip: $skip3){
id
currency
amount
@ -58,7 +58,7 @@ query user($id: ID!, $block: Block_height){
blockNumber
txHash
}
deposits{
deposits(where: $where4, orderBy: $orderBy4, orderDirection: $orderDirection4, first: $first4, skip: $skip4){
id
currency
amount

View File

@ -1,9 +1,9 @@
query users($block: Block_height, $where: User_filter, $orderBy: User_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){
users(block: $block, where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
query users($where: Transaction_filter, $orderBy: Transaction_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int, $where1: Order_filter, $orderBy1: Order_orderBy, $orderDirection1: OrderDirection, $first1: Int, $skip1: Int, $where2: Liquidation_filter, $orderBy2: Liquidation_orderBy, $orderDirection2: OrderDirection, $first2: Int, $skip2: Int, $where3: Transfer_filter, $orderBy3: Transfer_orderBy, $orderDirection3: OrderDirection, $first3: Int, $skip3: Int, $where4: Deposit_filter, $orderBy4: Deposit_orderBy, $orderDirection4: OrderDirection, $first4: Int, $skip4: Int, $block: Block_height, $where5: User_filter, $orderBy5: User_orderBy, $orderDirection5: OrderDirection, $first5: Int, $skip5: Int){
users(block: $block, where: $where5, orderBy: $orderBy5, orderDirection: $orderDirection5, first: $first5, skip: $skip5){
id
createdAt
transactionCount
transactions{
transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id
currency
maturity
@ -19,7 +19,7 @@ query users($block: Block_height, $where: User_filter, $orderBy: User_orderBy, $
txHash
}
orderCount
orders{
orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id
orderId
currency
@ -38,7 +38,7 @@ query users($block: Block_height, $where: User_filter, $orderBy: User_orderBy, $
txHash
}
liquidationCount
liquidations{
liquidations(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id
collateralCurrency
debtCurrency
@ -49,7 +49,7 @@ query users($block: Block_height, $where: User_filter, $orderBy: User_orderBy, $
txHash
}
transferCount
transfers{
transfers(where: $where3, orderBy: $orderBy3, orderDirection: $orderDirection3, first: $first3, skip: $skip3){
id
currency
amount
@ -58,7 +58,7 @@ query users($block: Block_height, $where: User_filter, $orderBy: User_orderBy, $
blockNumber
txHash
}
deposits{
deposits(where: $where4, orderBy: $orderBy4, orderDirection: $orderDirection4, first: $first4, skip: $skip4){
id
currency
amount

View File

@ -1632,14 +1632,14 @@ type User {
id: ID!
createdAt: BigInt!
transactionCount: BigInt!
transactions (where: Transaction_filter, orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]!
transactions(where: Transaction_filter, orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]!
orderCount: BigInt!
orders (where: Order_filter, orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]!
orders(where: Order_filter, orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]!
liquidationCount: BigInt!
liquidations (where: Liquidation_filter, orderBy: Liquidation_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Liquidation!]!
liquidations(where: Liquidation_filter, orderBy: Liquidation_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Liquidation!]!
transferCount: BigInt!
transfers (where: Transfer_filter, orderBy: Transfer_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transfer!]!
deposits (where: Deposit_filter, orderBy: Deposit_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Deposit!]!
transfers(where: Transfer_filter, orderBy: Transfer_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transfer!]!
deposits(where: Deposit_filter, 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 (where: Transaction_filter, orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]!
transactions(where: Transaction_filter, 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 (where: Transaction_filter, orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]!
orders (where: Order_filter, orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]!
transactions(where: Transaction_filter, orderBy: Transaction_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Transaction!]!
orders(where: Order_filter, orderBy: Order_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [Order!]!
volume: BigInt!
dailyVolume (where: DailyVolume_filter, orderBy: DailyVolume_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [DailyVolume!]!
dailyVolume(where: DailyVolume_filter, orderBy: DailyVolume_orderBy, orderDirection: OrderDirection, first: Int = 100, skip: Int = 0): [DailyVolume!]!
openingUnitPrice: BigInt!
lastLendUnitPrice: BigInt!
lastBorrowUnitPrice: BigInt!