composables, mazani letu, skeletony
This commit is contained in:
@@ -8,4 +8,7 @@ export const FRAGMENT_PHOTO_FULL_INFO = gql`
|
||||
filename
|
||||
name
|
||||
description
|
||||
flightId
|
||||
pointOfInterestId
|
||||
isFlightCover
|
||||
}`;
|
||||
|
||||
@@ -6,3 +6,19 @@ fragment pointOfInterestListInfo on PointOfInterest {
|
||||
name
|
||||
}
|
||||
`;
|
||||
|
||||
export const FRAGMENT_POI_FULL_INFO = gql`
|
||||
fragment pointOfInterestFullInfo on PointOfInterest {
|
||||
id
|
||||
name
|
||||
isPublic
|
||||
gpsLatitude
|
||||
gpsLongitude
|
||||
photos {
|
||||
thumbnailUrl
|
||||
url
|
||||
name
|
||||
description
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -20,3 +20,12 @@ mutation editFlight($id: Int!, $input: EditFlightInput!) {
|
||||
|
||||
${FRAGMENT_FLIGHT_FULL_INFO}
|
||||
`;
|
||||
|
||||
|
||||
export const DELETE_FLIGHT = gql`
|
||||
mutation deleteFlight($id: Int!) {
|
||||
deleteFlight(id: $id) {
|
||||
id
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -1,12 +1,22 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
|
||||
export const CREATE_POI = gql`
|
||||
mutation createPointOfInterest($input: CreatePointOfInterestInput!) {
|
||||
createPointOfInterest(input: $input) {
|
||||
...pointOfInterestListInfo
|
||||
...pointOfInterestFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_LIST_INFO}
|
||||
${FRAGMENT_POI_FULL_INFO}
|
||||
`;
|
||||
|
||||
export const EDIT_POI = gql`
|
||||
mutation editPointOfInterest($id: Int!, $input: EditPointOfInterestInput!) {
|
||||
editPointOfInterest(id: $id, input: $input) {
|
||||
...pointOfInterestFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_FULL_INFO}
|
||||
`;
|
||||
|
||||
@@ -8,3 +8,12 @@ query copilotsList {
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const COPILOTS_DETAIL = gql`
|
||||
query copilot($id: Int!) {
|
||||
copilot(id: $id) {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
|
||||
export const POI_LIST = gql`
|
||||
query poiList {
|
||||
@@ -10,3 +10,13 @@ query poiList {
|
||||
|
||||
${FRAGMENT_POI_LIST_INFO}
|
||||
`;
|
||||
|
||||
export const POI_DETAIL = gql`
|
||||
query poiDetail($id: Int!) {
|
||||
pointOfInterest(id: $id) {
|
||||
...pointOfInterestFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_POI_FULL_INFO}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user