{"componentChunkName":"component---src-templates-modal-page-js","path":"/yelp","result":{"pageContext":{"node":{"slug":{"current":"yelp"},"name":"Yelp","githubUrl":null,"description":"User Reviews and Recommendations of Top Restaurants, Shopping, Nightlife, Entertainment, Services and More","developer":null,"price":null,"url":"https://www.yelp.com/developers/graphql/guides/intro","tags":[],"logo":{"asset":{"url":"https://cdn.sanity.io/images/g5bd2nk6/production/eca4dc934d916cd7964502d8b041ebac7ae76fe2-80x40.png"}},"categories":[{"name":"Public APIs","slug":{"current":"public-apis"}}],"_rawContent":[{"_key":"8d9554da889e","_type":"block","children":[{"_key":"8d9554da889e0","_type":"span","marks":[],"text":"What’s the difference between Yelp's GraphQL API and the regular API?"}],"markDefs":[],"style":"h3"},{"_key":"771a90dd0d91","_type":"block","children":[{"_key":"771a90dd0d910","_type":"span","marks":[],"text":"The regular API is very well structured and specifically defined. The endpoints have their set requests and responses and that’s what you get whether or not that matches your usage pattern. GraphQL let’s you control all of this so that the way you consume the data matches exactly what you need."}],"markDefs":[],"style":"normal"},{"_key":"108022c489e8","_type":"block","children":[{"_key":"108022c489e80","_type":"span","marks":[],"text":"This is both a pro and a con. If your use case does not require all of the data, GraphQL can speed up your requests as we do less work on the server-side to fulfill those requests. Conversely, if you need all of the data in one request, your requests could slow down as we do more work to fulfill these requests."}],"markDefs":[],"style":"normal"},{"_key":"4550a297d26f","_type":"block","children":[{"_key":"4550a297d26f0","_type":"span","marks":[],"text":"The data itself returned from the regular API and GraphQL should be identical, with one caveat: we’re only returning 1 photo from GraphQL at the moment compared to 3 from the regular API."}],"markDefs":[],"style":"normal"}]},"targetPath":"","modalType":"tool"}},"staticQueryHashes":[]}