import gql from "graphql-tag"; import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo"; export const UPLOAD_PHOTO = gql` mutation uploadPhoto($input: UploadPhotoInput!) { uploadPhoto(input: $input) { ...photoFullInfo } } ${FRAGMENT_PHOTO_FULL_INFO} ` export const EDIT_PHOTO = gql` mutation editPhoto($id: Int!, $input: EditPhotoInput!) { editPhoto(id: $id, input: $input) { ...photoFullInfo } } ${FRAGMENT_PHOTO_FULL_INFO} `; export const ROTATE_PHOTO = gql` mutation rotatePhoto($id: Int!, $angle: Int!) { rotatePhoto(id: $id, angle: $angle) { ...photoFullInfo } } ${FRAGMENT_PHOTO_FULL_INFO} `; export const DELETE_PHOTO = gql` mutation deletePhoto($id: Int!) { deletePhoto(id: $id) { id } } `;