DEV Community

Jamie Barton
Jamie Barton

Posted on

Working with HTTPie and GraphQL

HTTPie just announced support for GraphQL! This is huge.

I've been using HTTPie via the Terminal for years, but the latest support for GraphQL inside their Web & Desktop client is a great addition.

You'll want to first enter the URL for your GraphQL API (in this case I'm using https://api.cartql.com, and then select from the list GraphQL in the bottom left:

HTTPie GraphQ

Right now there's no support for fetching the schema. This means when you're writing queries, or mutations you'll not get too much help on the available fields (or variables):

GraphQL query

Once you're ready to go you can click Send! The response, as well as the response headers, status code, and timings will be shown:

GraphQL response

HTTPie also makes it really easy to add your GraphQL requests to collections, and save for later!

Image description

Once the schema support lands this could be my new favourite for working with GraphQL.

Top comments (0)