-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
bug: Graphql doesn't work Body should be a JSON object
#401
Comments
Thank you for your issue! The error is self-evident, you're passing a string and not a JSON object. let response = gh.graphql(serde_json::json!({ "query": "{ viewer { login }}" })).await; |
Ah nice, I suggest you update the example code from Line 1038 in f2ce798
Thank you 😄 |
Thanks for the catch, I don't have the time right now, but if you wanted to make a quick Pr, I'd be happy to accept it 🙂 |
Ohh, no worries! I will make the PR asap 😄 👍 Nice library btw, I like it! |
Hi, I am trying to make a graphql request but even the example snippet fails:
Code:
Error:
The text was updated successfully, but these errors were encountered: