mattwr18 a215093bc3 Make Donations reactive
Co-authored-by: @alina-beck <alina.beck@mail.com>
2019-11-12 13:26:30 +01:00

25 lines
379 B
JavaScript

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