diff --git a/apps/web/graphql/rollups/queries.graphql b/apps/web/graphql/rollups/queries.graphql new file mode 100644 index 000000000..40d9e202f --- /dev/null +++ b/apps/web/graphql/rollups/queries.graphql @@ -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 + } + } + } +}