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