Files
app/src/graphql/fragments/flightPlan.js
T

69 lines
971 B
JavaScript

import gql from "graphql-tag";
export const FRAGMENT_FLIGHT_PLAN_MARKER = gql`
fragment flightPlanMarker on FlightPlanMarker {
name
position
type
gpsLatitude
gpsLongitude
pointOfInterestId
airportId
}
`
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
}
}
navlog {
bearing
distance
from {
...flightPlanMarker
}
to {
...flightPlanMarker
}
}
track {
points {
gpsLatitude
gpsLongitude
timestamp
terrainElevation
}
}
}
${FRAGMENT_FLIGHT_PLAN_MARKER}
`;
export const FRAGMENT_FLIGHT_PLAN_LIST_INFO = gql`
fragment flightPlanListInfo on FlightPlan {
id
name
plannedTakeoffDatetime
aircraft {
callSign
}
}
`;