Homepage, lepsi POI
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_AIRCRAFT_FULL_INFO} from "src/graphql/fragments/aircraft";
|
||||
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight";
|
||||
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list";
|
||||
|
||||
export const AIRCRAFTS_LIST = gql`
|
||||
query AircraftsList {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight";
|
||||
// import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list";
|
||||
import {FRAGMENT_COPILOT_FULL_INFO, FRAGMENT_COPILOT_LIST_INFO} from "src/graphql/fragments/copilot";
|
||||
|
||||
export const COPILOTS_LIST = gql`
|
||||
@@ -18,11 +18,12 @@ query copilot($id: Int!) {
|
||||
...copilotFullInfo
|
||||
|
||||
flights {
|
||||
...flightListInfo
|
||||
id
|
||||
name
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_COPILOT_FULL_INFO}
|
||||
${FRAGMENT_FLIGHT_LIST_INFO}
|
||||
`;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_FLIGHT_FULL_INFO, FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight";
|
||||
import {FRAGMENT_FLIGHT_FULL_INFO} from "src/graphql/fragments/flight";
|
||||
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list";
|
||||
|
||||
export const FLIGHTS_LIST = gql`
|
||||
query FlightsList($username: String) {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_TYPE_FULL_INFO, FRAGMENT_POI_TYPE_LIST_INFO} from "src/graphql/fragments/poi_type";
|
||||
|
||||
export const POI_TYPE_LIST = gql`
|
||||
query poiTypeList {
|
||||
pointOfInterestTypes {
|
||||
...poiTypeListInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_TYPE_LIST_INFO}
|
||||
`;
|
||||
|
||||
export const POI_TYPE_DETAIL = gql`
|
||||
query poiTypeDetail($id: Int!) {
|
||||
pointOfInterestType(id: $id) {
|
||||
...poiTypeFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_TYPE_FULL_INFO}
|
||||
`;
|
||||
Reference in New Issue
Block a user