queries in queries file instead of mutations

This commit is contained in:
Moriz Wahl 2022-06-01 14:10:37 +02:00
parent 6bdcd867e7
commit 70b1119840
2 changed files with 29 additions and 29 deletions

View File

@ -161,32 +161,3 @@ export const deletePendingCreation = gql`
deletePendingCreation(id: $id)
}
`
export const listTransactionLinksAdmin = gql`
query (
$userId: Int!
$filters: TransactionLinkFilters
$currentPage: Int = 1
$pageSize: Int = 5
) {
listTransactionLinksAdmin(
userId: $userId
filters: $filters
currentPage: $currentPage
pageSize: $pageSize
) {
linkCount
linkList {
id
amount
holdAvailableAmount
memo
code
createdAt
validUntil
redeemedAt
deletedAt
}
}
}
`

View File

@ -164,3 +164,32 @@ export const getPendingCreations = gql`
}
}
`
export const listTransactionLinksAdmin = gql`
query (
$userId: Int!
$filters: TransactionLinkFilters
$currentPage: Int = 1
$pageSize: Int = 5
) {
listTransactionLinksAdmin(
userId: $userId
filters: $filters
currentPage: $currentPage
pageSize: $pageSize
) {
linkCount
linkList {
id
amount
holdAvailableAmount
memo
code
createdAt
validUntil
redeemedAt
deletedAt
}
}
}
`