mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
@alina-beck I'm not 100% satisfied with this at the moment. I think that the admin could have the goal and progress initialized from a query for the Donations, and be able to update if one of them changed... what do you think?
15 lines
264 B
JavaScript
15 lines
264 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export const UpdateDonations = () => {
|
|
return gql`
|
|
mutation($goal: Int, $progress: Int) {
|
|
UpdateDonations(goal: $goal, progress: $progress) {
|
|
id
|
|
goal
|
|
progress
|
|
updatedAt
|
|
}
|
|
}
|
|
`
|
|
}
|