49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
import gql from "graphql-tag";
|
|
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_FULL_PRIVATE_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
|
|
|
export const POI_LIST = gql`
|
|
query poiList($limit: Int!, $offset: Int, $search: String) {
|
|
pointsOfInterest (limit: $limit, offset: $offset, search: $search) {
|
|
totalItemsCount
|
|
items {
|
|
...pointOfInterestListInfo
|
|
}
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_POI_LIST_INFO}
|
|
`;
|
|
|
|
export const POI_PUBLIC_LIST = gql`
|
|
query poiList($limit: Int!, $offset: Int, $search: String) {
|
|
pointsOfInterest(limit: $limit, offset: $offset, search: $search, public: true) {
|
|
totalItemsCount
|
|
items {
|
|
...pointOfInterestListInfo
|
|
}
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_POI_LIST_INFO}
|
|
`;
|
|
|
|
export const POI_DETAIL = gql`
|
|
query poiDetail($id: Int!) {
|
|
pointOfInterest(id: $id) {
|
|
...pointOfInterestFullPrivateInfo
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_POI_FULL_PRIVATE_INFO}
|
|
`;
|
|
|
|
export const POI_PUBLIC_DETAIL = gql`
|
|
query publicPOIDetail($urlSlug: String!) {
|
|
pointOfInterest(urlSlug: $urlSlug, public: true) {
|
|
...pointOfInterestFullInfo
|
|
}
|
|
}
|
|
|
|
${FRAGMENT_POI_FULL_INFO}
|
|
`;
|