import gql from "graphql-tag"; import {FRAGMENT_WEATHER_FULL_INFO} from "src/graphql/fragments/flight"; export const FRAGMENT_FLIGHT_PLAN_MARKER = gql` fragment flightPlanMarker on FlightPlanMarker { name position type gpsLatitude gpsLongitude pointOfInterestId airportId weatherInfo { ...weatherFullInfo } } ${FRAGMENT_WEATHER_FULL_INFO} ` export const FRAGMENT_FLIGHT_PLAN_FULL_INFO = gql` fragment flightPlanFullInfo on FlightPlan { id name plannedSpeed plannedTakeoffDatetime isDefaultName isPublic isEditableByCopilot description aircraft { id callSign seats isPublic titlePhoto { thumbnailUrl } } track { bearing distance from { ...flightPlanMarker } to { ...flightPlanMarker } } } ${FRAGMENT_FLIGHT_PLAN_MARKER} `; export const FRAGMENT_FLIGHT_PLAN_LIST_INFO = gql` fragment flightPlanListInfo on FlightPlan { id name plannedTakeoffDatetime aircraft { callSign } } `;