mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
25 lines
379 B
JavaScript
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
|
|
}
|
|
}
|
|
`
|
|
}
|