Skip to content

Commit

Permalink
feat: Add initial rollups query to feed input details
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomenezes committed Oct 9, 2023
1 parent b4e49df commit f313cdd
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions apps/web/graphql/rollups/queries.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

query inputDetails (
$inputIdx: Int!
$first: Int!
$noticesNextPage: String
$noticesPrevPage: String
$reportNextPage: String
$reportPrevPage: String
$voucherNextPage: String
$voucherPrevPage: String
) {
input(index: $inputIdx){
vouchers(first: $first, after: $voucherNextPage, before: $voucherPrevPage) {
totalCount
edges {
node {
index
payload
}
cursor
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
notices(first: $first, after: $noticesNextPage, before: $noticesPrevPage){
totalCount
edges {
node {
index
payload
}
cursor
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
reports(first: $first, after: $reportNextPage, before: $reportPrevPage) {
totalCount
edges {
node {
index
payload
}
cursor
}
pageInfo {
startCursor
endCursor
hasNextPage
hasPreviousPage
}
}
}
}

0 comments on commit f313cdd

Please sign in to comment.