question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native Graphql Support

See original GitHub issue

Currently to hit any Graphql query or mutation, we need to convert them first to json. It would be really great if we can copy the query directly from graphiql and then pass it to httpie.

Is it possible with httpie natively ? One of the vs-code extension is already doing it. Is the same/similar thing possible with httpie ?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jakubroztocilcommented, Dec 7, 2020

@schmidlidev GraphQL requests are regular HTTP requests so they have always been supported. This issue is about deeper GraphQL-specific features.

1reaction
collegeimprovementscommented, May 12, 2020

tldr; Example:

http query.graphql --schema schema.json

☝🏼Extension can be anything like: http or gql or graphql or post etc. The idea is user should be able to directly copy-paste the query from graphiql or graphql-client. He should not be worried about json conversion. 👉🏼 --schema file is optional. When provided the query is parsed & validated against it first. [might be out of scope]


Feature Requests:

  1. Send graphql request.
  2. Variable interpolation in httpie request. e.g. HOST and Request headers are different for dev and `prod.
  3. Graphql introspection if possible.

I think with this two features we can compose many powerful apps. I don’t know if the following falls into httpie’s scope. E.g. We can download graphql’s schema.json file and then we can have autocomplete and validation support.

With this two - Vim, VSCode, IDEs can implement: validation, autocomplete and response features for any graphql schema even with offline support. I was trying to send “graphql” queries from vim to terminal, but could not find a tool that can do that.

Useful Links:

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Does Native GraphQL Support in Kontent Bring for Devs?
In this article, I will introduce Kontent's new native GraphQL endpoint, explain GraphQL benefits from the developer's point of view, ...
Read more >
The world's best serverless database, now with native GraphQL
Fauna's GraphQL API supports three general functions: Queries, Mutations, and Subscriptions. At this time, Fauna natively supports Queries and ...
Read more >
Integrating with React Native - Apollo GraphQL Docs
React Native Debugger supports the Apollo Client Devtools: Install React Native Debugger and open it. Enable "Debug JS Remotely" in your app. If...
Read more >
GraphQL | A query language for your API
A query language for your API — GraphQL provides a complete description of the data in your API, gives clients the power to...
Read more >
Native GraphQL Support in Virtuoso — The Basics - Medium
Native GraphQL support in Virtuoso adds a new Data Access & Data Connectivity option alongside our existing support of SPARQL and SQL.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found