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){ lendingMarket(id: $id, block: $block){
id id
currency currency
maturity maturity
isActive isActive
transactions{ transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id id
currency currency
maturity maturity
@ -19,7 +19,7 @@ query lendingMarket($id: ID!, $block: Block_height){
blockNumber blockNumber
txHash txHash
} }
orders{ orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id id
orderId orderId
currency currency
@ -38,7 +38,7 @@ query lendingMarket($id: ID!, $block: Block_height){
txHash txHash
} }
volume volume
dailyVolume{ dailyVolume(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id id
currency currency
maturity maturity

View File

@ -1,10 +1,10 @@
query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderBy: LendingMarket_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){ 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: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){ lendingMarkets(block: $block, where: $where3, orderBy: $orderBy3, orderDirection: $orderDirection3, first: $first3, skip: $skip3){
id id
currency currency
maturity maturity
isActive isActive
transactions{ transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id id
currency currency
maturity maturity
@ -19,7 +19,7 @@ query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderB
blockNumber blockNumber
txHash txHash
} }
orders{ orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id id
orderId orderId
currency currency
@ -38,7 +38,7 @@ query lendingMarkets($block: Block_height, $where: LendingMarket_filter, $orderB
txHash txHash
} }
volume volume
dailyVolume{ dailyVolume(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id id
currency currency
maturity 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){ order(id: $id, block: $block){
id id
orderId orderId
@ -31,7 +31,7 @@ query order($id: ID!, $block: Block_height){
} }
isPreOrder isPreOrder
type type
transactions{ transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id id
currency currency
maturity maturity

View File

@ -1,5 +1,5 @@
query orders($block: Block_height, $where: Order_filter, $orderBy: Order_orderBy, $orderDirection: OrderDirection, $first: Int, $skip: Int){ 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: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){ orders(block: $block, where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id id
orderId orderId
user{ user{
@ -31,7 +31,7 @@ query orders($block: Block_height, $where: Order_filter, $orderBy: Order_orderBy
} }
isPreOrder isPreOrder
type type
transactions{ transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id id
currency currency
maturity 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){ user(id: $id, block: $block){
id id
createdAt createdAt
transactionCount transactionCount
transactions{ transactions(where: $where, orderBy: $orderBy, orderDirection: $orderDirection, first: $first, skip: $skip){
id id
currency currency
maturity maturity
@ -19,7 +19,7 @@ query user($id: ID!, $block: Block_height){
txHash txHash
} }
orderCount orderCount
orders{ orders(where: $where1, orderBy: $orderBy1, orderDirection: $orderDirection1, first: $first1, skip: $skip1){
id id
orderId orderId
currency currency
@ -38,7 +38,7 @@ query user($id: ID!, $block: Block_height){
txHash txHash
} }
liquidationCount liquidationCount
liquidations{ liquidations(where: $where2, orderBy: $orderBy2, orderDirection: $orderDirection2, first: $first2, skip: $skip2){
id id
collateralCurrency collateralCurrency
debtCurrency debtCurrency
@ -49,7 +49,7 @@ query user($id: ID!, $block: Block_height){
txHash txHash
} }
transferCount transferCount
transfers{ transfers(where: $where3, orderBy: $orderBy3, orderDirection: $orderDirection3, first: $first3, skip: $skip3){
id id
currency currency
amount amount
@ -58,7 +58,7 @@ query user($id: ID!, $block: Block_height){
blockNumber blockNumber
txHash txHash
} }
deposits{ deposits(where: $where4, orderBy: $orderBy4, orderDirection: $orderDirection4, first: $first4, skip: $skip4){
id id
currency currency
amount amount

View File

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