mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-28 21:25:32 +00:00
60 lines
1.1 KiB
GraphQL
60 lines
1.1 KiB
GraphQL
|
|
fragment contributionFields on Contribution {
|
|
id
|
|
amount
|
|
memo
|
|
createdAt
|
|
contributionDate
|
|
confirmedAt
|
|
confirmedBy
|
|
status
|
|
messagesCount
|
|
deniedAt
|
|
deniedBy
|
|
updatedBy
|
|
updatedAt
|
|
}
|
|
|
|
fragment contributionMessageFields on ContributionMessage {
|
|
id
|
|
message
|
|
createdAt
|
|
updatedAt
|
|
type
|
|
userFirstName
|
|
userLastName
|
|
userId
|
|
}
|
|
|
|
query listContributions ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
|
|
listContributions(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
|
|
contributionCount
|
|
contributionList {
|
|
...contributionFields
|
|
deletedAt
|
|
moderatorId
|
|
messages(pagination: { currentPage: 1, pageSize: 10, order: DESC }) {
|
|
...contributionMessageFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
query countContributionsInProgress {
|
|
countContributionsInProgress
|
|
}
|
|
|
|
|
|
query listAllContributions ($currentPage: Int = 1, $pageSize: Int = 25, $order: Order = DESC) {
|
|
listAllContributions(currentPage: $currentPage, pageSize: $pageSize, order: $order) {
|
|
contributionCount
|
|
contributionList {
|
|
firstName
|
|
lastName
|
|
...contributionFields
|
|
}
|
|
}
|
|
}
|
|
|
|
|