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

Example in Readme: making a GraphQL request #501

Open
bennettscience opened this issue Jul 9, 2021 · 1 comment
Open

Example in Readme: making a GraphQL request #501

bennettscience opened this issue Jul 9, 2021 · 1 comment

Comments

@bennettscience
Copy link
Contributor

There's some buzz on Canvas working toward releasing more GraphQL APIs, particularly with the New Quizzes API coming in the near future. It looks like that will be a GraphQL endpoint.

I know the library can make GraphQL requests, but an example (for those of us with no experience in making them) would be great along with the other getting started examples.

@jonespm
Copy link
Contributor

jonespm commented Jul 15, 2021

Hi @bennettscience

I used this script when I was testing the implementation of this. I verified that this is still working.
https://gist.github.com/jonespm/b8b493da4ef385a60f49ca355a8043c3

I think we've used this call a few times internally as well. I thought it could be cool if this library was able to auto-translate some of the common methods to GraphQL calls instead to improve performance but never got around to working on that.

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