DEV Community

Jamie Barton
Jamie Barton

Posted on

1

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.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay