Created
August 13, 2017 20:46
-
-
Save pranayairan/00345cc2bfd75faca5e468e91c835c7a to your computer and use it in GitHub Desktop.
GraphQL query to fetch business details from Yelp's GraphQL API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query BusinessDetails($businessID: String!){ | |
business(id: $businessID) { | |
id | |
name | |
is_claimed | |
is_closed | |
url | |
phone | |
display_phone | |
review_count | |
rating | |
price | |
categories { | |
title | |
} | |
location { | |
formatted_address | |
} | |
coordinates { | |
latitude | |
longitude | |
} | |
photos | |
hours { | |
hours_type | |
is_open_now | |
open { | |
end | |
start | |
day | |
} | |
} | |
reviews { | |
text | |
rating | |
time_created | |
user { | |
name | |
image_url | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment