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 } } `;