23 lines
465 B
JavaScript
23 lines
465 B
JavaScript
import gql from "graphql-tag";
|
|
import {FRAGMENT_FLIGHT_PLAN_FULL_INFO, FRAGMENT_FLIGHT_PLAN_LIST_INFO} from "src/graphql/fragments/flightPlan";
|
|
|
|
export const FLIGHT_PLANS_LIST = gql`
|
|
query flightPlansList {
|
|
flightPlans {
|
|
...flightPlanListInfo
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_FLIGHT_PLAN_LIST_INFO}
|
|
`;
|
|
|
|
export const FLIGHT_PLAN_DETAIL = gql`
|
|
query flightPlansDetail($id: Int!) {
|
|
flightPlan(id: $id) {
|
|
...flightPlanFullInfo
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_FLIGHT_PLAN_FULL_INFO}
|
|
`;
|