Combobox, POI
This commit is contained in:
@@ -18,6 +18,13 @@ fragment flightFullInfo on Flight {
|
||||
...airportInfo
|
||||
}
|
||||
|
||||
track {
|
||||
pointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
landingAirport {
|
||||
...airportInfo
|
||||
}
|
||||
@@ -71,6 +78,10 @@ fragment flightEditIds on Flight {
|
||||
takeoffAirportId
|
||||
aircraftId
|
||||
copilotId
|
||||
copilot {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const FRAGMENT_POI_LIST_INFO = gql`
|
||||
fragment pointOfInterestListInfo on PointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
`;
|
||||
@@ -0,0 +1,12 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
|
||||
export const CREATE_POI = gql`
|
||||
mutation createPointOfInterest($input: CreatePointOfInterestInput!) {
|
||||
createPointOfInterest(input: $input) {
|
||||
...pointOfInterestListInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_LIST_INFO}
|
||||
`;
|
||||
@@ -0,0 +1,12 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
|
||||
export const POI_LIST = gql`
|
||||
query poiList {
|
||||
pointsOfInterest {
|
||||
...pointOfInterestListInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_LIST_INFO}
|
||||
`;
|
||||
Reference in New Issue
Block a user