Skip to content

Instantly share code, notes, and snippets.

@dipunm
Last active February 28, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipunm/63b963d2ad148ca557b7b33c27e2f676 to your computer and use it in GitHub Desktop.
Save dipunm/63b963d2ad148ca557b7b33c27e2f676 to your computer and use it in GitHub Desktop.
{
pointOfInterest(landmarkId: 8888) {
name
pointOfInterestId
coordinates{
latitude
longitude
}
radius
nearbys {
id
name
category {
id
name
image
}
}
restaurants{
name
restaurantId
description
cuisines{
name
}
mentions {
reviewText
highlights
}
facets {
cuisine {
id
count
}
price {
id
count
}
}
}
}
}
{
pointOfInterest(landmarkId: 8888) {
name
longitude
latitude
relatedDishes {
name
}
relatedCuisines {
name
}
}
nearbyPointsOfInterest(landmarkId: 8888) {
pointsOfInterest {
id
name
category {
id
name
image
}
}
}
restaurantsNearLandmark(landmarkId: 8888) {
restaurants {
name
... on WithDistanceFromLocation {
distance
}
etc
}
facets {
cuisine {
id
count
}
price {
id
count
}
}
}
}
{
pointOfInterest(landmarkId: 8888) {
name
longitude
latitude
relatedDishes {
name
}
relatedCuisines {
name
}
}
restaurantRowByLandmark(landmarkId: 8888, appliedFilters: $filters) {
// probably need to introduce pagination nodes and edges here also.
restaurantRow {
name
distance
review
}
}
restaurantFiltersByLandmark(landmarkId: 8888, appliedFilters: $filters) {
cuisine {
id
name,
count
}
price {
id
symbol,
count
}
}
nearbyPointsOfInterest(landmarkId: 8888) {
categories {
id
name
image
pointsOfInterest {
id
name
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment