Editace fotek v modalu, lepsi datetime picker
This commit is contained in:
@@ -1,24 +1,30 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_FLIGHT_FULL_INFO} from "src/graphql/fragments/flight";
|
||||
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
|
||||
|
||||
export const UPLOAD_PHOTO = gql`
|
||||
mutation uploadPhoto($input: UploadPhotoInput!) {
|
||||
uploadPhoto(input: $input) {
|
||||
url
|
||||
thumbnailUrl
|
||||
filename
|
||||
name
|
||||
description
|
||||
...photoFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_PHOTO_FULL_INFO}
|
||||
`
|
||||
|
||||
export const EDIT_FLIGHT = gql`
|
||||
mutation editFlight($id: Int!, $input: EditFlightInput!) {
|
||||
editFlight(id: $id, input: $input) {
|
||||
...flightFullInfo
|
||||
export const EDIT_PHOTO = gql`
|
||||
mutation editPhoto($id: Int!, $input: EditPhotoInput!) {
|
||||
editPhoto(id: $id, input: $input) {
|
||||
...photoFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_FLIGHT_FULL_INFO}
|
||||
${FRAGMENT_PHOTO_FULL_INFO}
|
||||
`;
|
||||
|
||||
export const DELETE_PHOTO = gql`
|
||||
mutation deletePhoto($id: Int!) {
|
||||
deletePhoto(id: $id) {
|
||||
id
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user