From f313cdd62e2d57533a1be3194a77acf00e67bf5c Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Mon, 9 Oct 2023 19:57:24 +1300 Subject: [PATCH] feat: Add initial rollups query to feed input details --- apps/web/graphql/rollups/queries.graphql | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 apps/web/graphql/rollups/queries.graphql 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 + } + } + } +}