Combobox, POI

This commit is contained in:
Michal Kváček
2023-07-17 13:03:42 +02:00
parent bbb21278fd
commit 2d76d136cf
14 changed files with 352 additions and 345 deletions
+11
View File
@@ -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
}
}
`;
+8
View File
@@ -0,0 +1,8 @@
import gql from "graphql-tag";
export const FRAGMENT_POI_LIST_INFO = gql`
fragment pointOfInterestListInfo on PointOfInterest {
id
name
}
`;
+12
View File
@@ -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}
`;
+12
View File
@@ -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}
`;