Files
app/src/graphql/mutations/poi.js
T

23 lines
591 B
JavaScript

import gql from "graphql-tag";
import {FRAGMENT_POI_FULL_PRIVATE_INFO} from "src/graphql/fragments/poi";
export const CREATE_POI = gql`
mutation createPointOfInterest($input: CreatePointOfInterestInput!) {
createPointOfInterest(input: $input) {
...pointOfInterestFullPrivateInfo
}
}
${FRAGMENT_POI_FULL_PRIVATE_INFO}
`;
export const EDIT_POI = gql`
mutation editPointOfInterest($id: Int!, $input: EditPointOfInterestInput!) {
editPointOfInterest(id: $id, input: $input) {
...pointOfInterestFullPrivateInfo
}
}
${FRAGMENT_POI_FULL_PRIVATE_INFO}
`;