Lepsi verejna cast, ssr, lepsi prace s fotkamaa
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
|
||||
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 {
|
||||
@@ -11,9 +11,29 @@ query poiList {
|
||||
${FRAGMENT_POI_LIST_INFO}
|
||||
`;
|
||||
|
||||
export const POI_PUBLIC_LIST = gql`
|
||||
query poiList {
|
||||
pointsOfInterest(public: true) {
|
||||
...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 poiDetail($id: Int!) {
|
||||
pointOfInterest(id: $id, public: true) {
|
||||
...pointOfInterestFullInfo
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user