Problems with using GraphiQL code in Insomnia

Jump to solution
agschmid
Community Contributor

GraphQL is totally new to me and while I've been able to create some queries in graphiql, when I try the same code in Insomnia, the IDs don't work and need to be altered. A course ID which is normally 7 digits and works when used in graphiql needs to have "29000000" pre-pended in Insomnia. I haven't been able to figure out what works when trying to get user information with a userID in Insomnia yet. Has anyone else run into this when creating queries outside of graphiql? Or found any documentation on this? I was hoping to rewrite my ruby scripts that use the api currently to using graphql.

Here is an example of the differences between graphiql and Insomnia:

318075_pastedImage_1.png

318076_pastedImage_2.png

318083_pastedImage_1.png

1 Solution

I just did some log-diving.  It looks like Insomnia is configured to hit canvas.beta.instructure.com, but it should be <yourinstitution>.beta.instructure.com.

View solution in original post