Aktualizace balicku, strnakovani, uprava hlavni stranky
This commit is contained in:
@@ -4,22 +4,35 @@ import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list";
|
||||
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
|
||||
|
||||
export const FLIGHTS_LIST = gql`
|
||||
query FlightsList {
|
||||
flights {
|
||||
...flightListInfo
|
||||
query FlightsList($limit: Int!, $offset: Int) {
|
||||
flights(limit: $limit, offset: $offset) {
|
||||
totalItemsCount
|
||||
items {
|
||||
...flightListInfo
|
||||
}
|
||||
}
|
||||
}
|
||||
${FRAGMENT_FLIGHT_LIST_INFO}
|
||||
`;
|
||||
|
||||
export const FLIGHTS_PUBLIC_LIST = gql`
|
||||
query FlightsPublicList($username: String, $aircraftId: Int, $copilotId: Int, $pointOfInterestId: Int) {
|
||||
flights(username: $username, aircraftId: $aircraftId, copilotId: $copilotId, pointOfInterestId: $pointOfInterestId, public: true) {
|
||||
...flightListInfo
|
||||
|
||||
pilot {
|
||||
id
|
||||
publicUsername
|
||||
query FlightsPublicList($username: String, $aircraftId: Int, $copilotId: Int, $pointOfInterestId: Int, $limit: Int!, $offset: Int) {
|
||||
flights(
|
||||
username: $username,
|
||||
aircraftId: $aircraftId,
|
||||
copilotId: $copilotId,
|
||||
pointOfInterestId: $pointOfInterestId,
|
||||
limit: $limit,
|
||||
offset: $offset,
|
||||
public: true
|
||||
) {
|
||||
totalItemsCount
|
||||
items {
|
||||
...flightListInfo
|
||||
pilot {
|
||||
id
|
||||
publicUsername
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user