mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
queries in queries file instead of mutations
This commit is contained in:
parent
6bdcd867e7
commit
70b1119840
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user