From 2dd415676a4961021de706e82d158d3fa0cf41e0 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 15 Jun 2022 08:29:17 +0200 Subject: [PATCH] refactor graphql listContributionLinks --- admin/src/graphql/listContributionLinks.js | 29 +++++++++++++--------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/admin/src/graphql/listContributionLinks.js b/admin/src/graphql/listContributionLinks.js index f04fdf2c6..7ce4b04e6 100644 --- a/admin/src/graphql/listContributionLinks.js +++ b/admin/src/graphql/listContributionLinks.js @@ -1,18 +1,23 @@ import gql from 'graphql-tag' export const listContributionLinks = gql` - query { - listContributionLinks { - id - validFrom - validTo - name - memo - amount - cycle - maxPerCycle - maxAmountPerMonth - link + query ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) { + listContributionLinks(currentPage: $currentPage, pageSize: $pageSize, order: $order) { + links { + id + amount + name + memo + code + link + createdAt + validFrom + validTo + maxAmountPerMonth + cycle + maxPerCycle + } + count } } `