Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in favoritebusinesses query #1

Closed
BhaskaranR opened this issue Dec 23, 2018 · 2 comments
Closed

error in favoritebusinesses query #1

BhaskaranR opened this issue Dec 23, 2018 · 2 comments

Comments

@BhaskaranR
Copy link

trying to understand the yelp example. favoritebusinesses gives me this error. any help how to fix this?

Syntax Error GraphQL request (2:313) Expected Name, found }\n\n1: query ($_term: String, $_location: String, $_country: String, $_offset: Int, $_limit: Int, $_sort_by: String, $_locale: String, $_longitude: Float, $_latitude: Float, $_categories: String, $_open_now: Boolean, $_open_at: Int, $_price: String, $_attributes: [String], $_radius: Float) {\n2: search(term: $_term, location: $_location, country: $_country, offset: $_offset, limit: $_limit, sort_by: $_sort_by, locale: $_locale, longitude: $_longitude, latitude: $_latitude, categories: $_categories, open_now: $_open_now, open_at: $_open_at, price: $_price, attributes: $_attributes, radius: $_radius) {}\n

other queries work just fine

@BhaskaranR
Copy link
Author

the return type for favoritebusinesses should be businesses instead of business.

@DevanB
Copy link
Owner

DevanB commented Dec 24, 2018

Thanks for pointing that out! I’ve updated the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants