Wolfgang Huß d40dd94868 Implement showDonations in the database
- Add to backend tests.
2021-04-15 10:51:01 +02:00

27 lines
477 B
JavaScript

import gql from 'graphql-tag'
export const DonationsQuery = () => gql`
query {
Donations {
id
showDonations
goal
progress
}
}
`
export const UpdateDonations = () => {
return gql`
mutation($showDonations: Boolean, $goal: Int, $progress: Int) {
UpdateDonations(showDonations: $showDonations, goal: $goal, progress: $progress) {
id
showDonations
goal
progress
updatedAt
}
}
`
}