Files
app/src/graphql/mutations/event.js
T
2023-09-19 06:33:17 +02:00

30 lines
583 B
JavaScript

import gql from "graphql-tag";
import {FRAGMENT_EVENT_FULL_INFO} from "src/graphql/fragments/event";
export const CREATE_EVENT = gql`
mutation createEvent($input: CreateEventInput!) {
createEvent(input: $input) {
...eventFullInfo
}
}
${FRAGMENT_EVENT_FULL_INFO}
`;
export const EDIT_EVENT = gql`
mutation editEvent($id: Int!, $input: EditEventInput!) {
editEvent(id: $id, input: $input) {
...eventFullInfo
}
}
${FRAGMENT_EVENT_FULL_INFO}
`;
export const DELETE_EVENT = gql`
mutation deleteEvent($id: Int!) {
deleteEvent(id: $id) {
id
}
}
`;