Update GQL schema types with arguments on plural fields #7

Merged
nabarun merged 2 commits from pm-support-nested-args into main 2024-08-01 13:40:28 +00:00
Member

Part of Support arguments on nested GQL query selections

Queries like the following are supported now:

query($userId: ID!)  {
  user(id: $userId) {
    orderCount
    orders(orderBy: createdAt, orderDirection: desc) {
      id
      orderId
      inputAmount
      status
      createdAt
    }
  }
}

query($userId: ID!)  {
  user(id: $userId) {
    transactions(orderBy: createdAt, orderDirection: desc) {
      id
      currency
      maturity
      side
      executionPrice
      futureValue
      amount
      averagePrice
      createdAt
      feeInFV
      user {
        id
      }
    }
  }
}
Part of [Support arguments on nested GQL query selections](https://www.notion.so/Support-arguments-on-nested-GQL-query-selections-6731b85910894a2bb7496ef7a44044cc) Queries like the following are supported now: ```gql query($userId: ID!) { user(id: $userId) { orderCount orders(orderBy: createdAt, orderDirection: desc) { id orderId inputAmount status createdAt } } } query($userId: ID!) { user(id: $userId) { transactions(orderBy: createdAt, orderDirection: desc) { id currency maturity side executionPrice futureValue amount averagePrice createdAt feeInFV user { id } } } } ```
prathamesh added 1 commit 2024-08-01 13:35:40 +00:00
prathamesh added 1 commit 2024-08-01 13:38:14 +00:00
nabarun merged commit f9a8227719 into main 2024-08-01 13:40:28 +00:00
nabarun deleted branch pm-support-nested-args 2024-08-01 13:40:28 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/secured-finance-watcher-ts#7
No description provided.