News for hackers. Stuff that matters.
Re:Introducing GraphQL Support for Insomnia by gschier on Wednesday August 09, 2017 @10:24PM (#14975798)
I'm the creator of Insomnia and I'd love to hear your feedback if you try it out! I'm still a novice to GraphQL, so I'd like to make sure that it accommodates all use cases.

~ Gregory

Re:Introducing GraphQL Support for Insomnia by thejosh on Wednesday August 09, 2017 @11:47PM (#14976161)
I've been using Insomia for a while, and really, really like it (hence why I submitted this post here :D).

The GraphQL support looks good, and will try it out with our backend.

Re:Introducing GraphQL Support for Insomnia by gschier on Wednesday August 09, 2017 @11:54PM (#14976195)
Awesome, thanks for posting :)

Be sure to submit any issues you may have via Slack/GitHub/Email

Re:Introducing GraphQL Support for Insomnia by kevinSuttle on Thursday August 10, 2017 @11:21AM (#14980596)
I think as long as it's good or better than GraphIQL, you've got an advantage.
Re:Introducing GraphQL Support for Insomnia by tbrock on Wednesday August 09, 2017 @11:27PM (#14976083)
Cool. Insomnia is quite good. I prefer it over Paw (for MacOS only) because it is cross platform and I only want to learn one tool that works on both Mac and Linux.

Thanks for all the hard work!

Re:Introducing GraphQL Support for Insomnia by gschier on Wednesday August 09, 2017 @11:44PM (#14976151)
Glad to hear it. Thanks for the kind words!
Re:Introducing GraphQL Support for Insomnia by dfischer on Thursday August 10, 2017 @12:52AM (#14976517)
Hey simple question: mobile now... does this support sending auth headers per request?
Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @01:18AM (#14976663)
Yep!
Re:Introducing GraphQL Support for Insomnia by dfischer on Thursday August 10, 2017 @01:30AM (#14976723)
Just tried it. I LOVE IT! Great work!
Re:Introducing GraphQL Support for Insomnia by mp01 on Thursday August 10, 2017 @09:31AM (#14979418)
What's the difference between using this and using graphiql?
Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @11:48AM (#14980857)
Lots, actually. Since Insomnia is a full-featured HTTP testing tool, you can use all other Insomnia features with GraphQL like setting custom headers, filtering responses with JSONPath, Nunjucks templating, etc.
Re:Introducing GraphQL Support for Insomnia by max23_ on Thursday August 10, 2017 @12:11AM (#14976266)
Timely update as I am learning GraphQL with it and it is simpler now to define the request body.

Great work and keep it up.

Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @12:22AM (#14976316)
Nice! That's exactly why I implemented it (I just learned it too for a side project)
Re:Introducing GraphQL Support for Insomnia by johnhenry on Thursday August 10, 2017 @09:08AM (#14979227)
Gregory, thanks for introducing Insomnia to the world and thanks for continuing to make it better!
Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @11:48AM (#14980863)
:)
Re:Introducing GraphQL Support for Insomnia by kevinSuttle on Thursday August 10, 2017 @11:12AM (#14980485)
What a clever domain name.
Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @11:48AM (#14980860)
Thanks!
Re:Introducing GraphQL Support for Insomnia by FullMtlAlcoholc on Wednesday August 09, 2017 @11:49PM (#14976168)
This is fantastic news as I loved your tool, but it fell out of favor as I startee using graphQL more.

Definitely looking forward to ditching graphiQL!

Does it support imports for graph. cool?

Re:Introducing GraphQL Support for Insomnia by hn_throwaway_99 on Wednesday August 09, 2017 @11:54PM (#14976197)
I'm curious as to why you want to ditch graphiQL. I find graphiQL to be one of the best things about the GraphQL ecosystem.
Re:Introducing GraphQL Support for Insomnia by FullMtlAlcoholc on Thursday August 10, 2017 @12:23AM (#14976330)
Purely aesthetics. I'm a weirdo, but a pretty UI really enhances my development experience. I'll use a less functional product if it pleases my pupils, like Hyper over iTerm2. (Not saying insomnia is less functional, it's just very pretty :)
Re:Introducing GraphQL Support for Insomnia by gschier on Wednesday August 09, 2017 @11:53PM (#14976189)
I haven't used graph.cool yet but as far as I can tell it's just another GraphQL backend so yes, it should work just the same.
Re:Introducing GraphQL Support for Insomnia by baconomatic on Thursday August 10, 2017 @09:40AM (#14979492)
Perhaps I'm missing it, but it appears this only works with POST requests?
Re:Introducing GraphQL Support for Insomnia by tylerpachal on Thursday August 10, 2017 @09:50AM (#14979609)
You are probably correct. The server-side GQL implementations I have worked on expect only POST requests, and expect each requests' body to contain a query or a mutation.
Re:Introducing GraphQL Support for Insomnia by baconomatic on Thursday August 10, 2017 @12:30PM (#14981337)
Good point, looks like my implementation of GraphQL was't correct. Thanks!
Re:Introducing GraphQL Support for Insomnia by gschier on Thursday August 10, 2017 @01:09PM (#14981804)
GraphQL actually does support GET requests, but most clients (like Apollo) don't support it out of the box.

http://graphql.org/learn/serving-over-http/

Re:Introducing GraphQL Support for Insomnia by baconomatic on Thursday August 10, 2017 @03:02PM (#14982982)
That's what I had though, was just surprised by the lack of client support.