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.

[Feature Request] Formatting/beautify GraphQL queries

See original GitHub issue

Details

Having a button to format GraphQL would be great. In my current workflow I sometimes Copy as cURL a call to GraphQL from somewhere and import it into Insomnia. Then I switch the body type to GraphQL Query, which works great. Having a way to easily format it from there would be nice.

Since GraphiQL has the functionality, the formatting logic should be available already.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

27reactions
gschiercommented, Dec 6, 2017

I believe you’re looking for this?

image
3reactions
jdorleanscommented, Dec 26, 2021

@gschier would that be possible to format the “Query Variables” as well? Also, do we have a shortcut for that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Feature Request] Formatting/beautify GraphQL queries #648
In my current workflow I sometimes Copy as cURL a call to GraphQL from somewhere and import it into Insomnia. Then I switch...
Read more >
GraphQL query best practices
Apollo Studio provides helpful operation-level metrics, which require named operations. Use GraphQL variables to provide arguments. These two queries can both ...
Read more >
Queries and Mutations - GraphQL
On this page, you'll learn in detail about how to query a GraphQL server. ... set of arguments - the query parameters and...
Read more >
GraphQL Queries - Insomnia Docs
This article will explain how to create and execute GraphQL queries within Insomnia. ... The query is the only required field of a...
Read more >
GraphQL query-to-feature correlation mechanism - GitLab.org
Using the controller's feature_category offers an immediate boring solution that tags all requests. Some shared queries (like getUsers ) are ...
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