Sprava eventu

This commit is contained in:
Michal Kváček
2023-09-19 06:33:17 +02:00
parent 0c91ff7838
commit 6fbaef4a1e
25 changed files with 533 additions and 30 deletions
+29
View File
@@ -0,0 +1,29 @@
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
}
}
`;