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.

GraphiQL does not prettify where clauses

See original GitHub issue

When running ‘prettify’ in GraphiQL it just where clauses onto one line, resulting in them being much less ‘pretty’

eg

thing(where: {_and: [{abc: {_eq: $abc}}, {_or: [{foo: {bar: {value: {_ilike: "%gor%"}}}}, {foo: {baa: {boo: {moo: {value: {_ilike: "%gor%"}}}}}}]}]}) {

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:6

github_iconTop GitHub Comments

5reactions
bitjsoncommented, Oct 25, 2019

This would really improve my workflow. 👍

Right now I typically copy/paste queries from the Hasura console into a VSCode window, where I can reformat the query with the Prisma vscode-graphql extension.

0reactions
ARMATAVcommented, Sep 30, 2022

any updates on this?

im now 26 years old, still have to scroll right

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I add an OR condition in a graphql where statement?
ERROR: "Your filters contain a field 'or' that doesnt appear on your model definition nor it's relations. Some statements that work (but not...
Read more >
GraphQL Queries to fetch data - Hasura
GraphQL Query Filter - Where Clause. You can filter the data returned by your queries with the where argument. The where argument is...
Read more >
GraphQL Query Options - Gatsby
Intro This page will walk you through a series of GraphQL queries, ... In this query, the filter argument and the ne (not...
Read more >
Queries and Mutations - GraphQL
On this page, you'll learn in detail about how to query a GraphQL server. Fields#. At its simplest, GraphQL is about asking for...
Read more >
GraphQL Tutorial: how to use fields, fragments, and more
GraphQL will throw an error if we query the same field with different arguments. Imagine we have our user objects and want to...
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