import gql from "graphql-tag"; import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo"; import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list"; export const PHOTO_DETAIL = gql` query photo($id: Int!) { photo(id: $id) { ...photoFullInfo pointOfInterest { id name } copilots { id name } adjustment { contrast saturation brightness rotate sharpness cropLeft cropTop cropWidth cropHeight } flight { ...flightListInfo } } } ${FRAGMENT_PHOTO_FULL_INFO} ${FRAGMENT_FLIGHT_LIST_INFO} `; export const PHOTOS_PUBLIC_LIST = gql` query publicPhotos($flightId: Int, $pointOfInterestId: Int, $aircraftId: Int, $copilotId: Int) { photos(public: true, flightId: $flightId, pointOfInterestId: $pointOfInterestId, aircraftId: $aircraftId, copilotId: $copilotId) { ...photoFullInfo } } ${FRAGMENT_PHOTO_FULL_INFO} `;