Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphiQL does not prettify where clauses #1571

Open
elgordino opened this issue Feb 7, 2019 · 8 comments
Open

GraphiQL does not prettify where clauses #1571

elgordino opened this issue Feb 7, 2019 · 8 comments
Assignees
Labels
c/console Related to console c/v3-console k/enhancement New feature or improve an existing feature s/triaged This has been reviewed by Hasura v3

Comments

@elgordino
Copy link
Contributor

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%"}}}}}}]}]}) {
@coco98 coco98 added k/enhancement New feature or improve an existing feature c/console Related to console labels Feb 7, 2019
@BatuhanW
Copy link

+1 for this. I'm prettifying queries myself. If I accidently click prettify, now I have single line with 500 characters long. I can't read anything.

@dsandip dsandip added the p/longterm Low priority issues that will be picked up based on user feedback or bandwidth label May 13, 2019
@rikinsk-zz rikinsk-zz added e/intermediate can be wrapped up in a week p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints and removed p/longterm Low priority issues that will be picked up based on user feedback or bandwidth labels Jul 10, 2019
@rikinsk-zz rikinsk-zz removed their assignment Jul 10, 2019
@ARMATAV
Copy link

ARMATAV commented Oct 16, 2019

+1 for this, I troll myself every time by clicking prettify and getting wrecked.

@bitjson
Copy link

bitjson commented 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.

@vxm5091
Copy link

vxm5091 commented Jun 24, 2022

+1

1 similar comment
@ravargash
Copy link

+1

@ARMATAV
Copy link

ARMATAV commented Sep 30, 2022

any updates on this?

im now 26 years old, still have to scroll right

@gtupak
Copy link

gtupak commented Mar 29, 2023

+1

@manasag
Copy link
Contributor

manasag commented Dec 28, 2023

This feature is dependent on support by the GraphiQL library. There is an open issue with GraphiQL on the same. We have tested with GraphiQL 2 (with Hasura V3), and its still not supported.
Please report if there is way latest GraphiQL supports this (and we may have missed it in our investigation).

@manasag manasag added c/v3-console and removed p/medium non-urgent issues/features that are candidates for being included in one of the upcoming sprints e/intermediate can be wrapped up in a week a/api/graphql labels Dec 28, 2023
@manasag manasag added the s/triaged This has been reviewed by Hasura label Dec 28, 2023
@manasag manasag added the v3 label May 22, 2024
hasura-bot pushed a commit that referenced this issue Jan 27, 2025
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.26 to 4.5.27.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/releases">clap's
releases</a>.</em></p>
<blockquote>
<h2>v4.5.27</h2>
<h2>[4.5.27] - 2025-01-20</h2>
<h3>Documentation</h3>
<ul>
<li>Iterate on tutorials and reference based on feedback</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's
changelog</a>.</em></p>
<blockquote>
<h2>[4.5.27] - 2025-01-20</h2>
<h3>Documentation</h3>
<ul>
<li>Iterate on tutorials and reference based on feedback</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/clap-rs/clap/commit/21c9892efec76ea231f67de092472280bbf49cb7"><code>21c9892</code></a>
chore: Release</li>
<li><a
href="https://github.com/clap-rs/clap/commit/0c8bceb3e98316f7365f86fc37d492cadb5680b2"><code>0c8bceb</code></a>
docs: Update changelog</li>
<li><a
href="https://github.com/clap-rs/clap/commit/d8f102a18cac1b6b634a0ebfe774dca7d97e7392"><code>d8f102a</code></a>
Merge pull request <a
href="https://github.com/clap-rs/clap/issues/5732">#5732</a>
from epage/consistent</li>
<li><a
href="https://github.com/clap-rs/clap/commit/c92fca3a8fbbae0b593cd09800f6281c42e4971b"><code>c92fca3</code></a>
docs(complete): Clarify CompleteEnv's Shell trait</li>
<li><a
href="https://github.com/clap-rs/clap/commit/5ca60e9079e79c44eee4e226fabec943b8138ef8"><code>5ca60e9</code></a>
Merge pull request <a
href="https://github.com/clap-rs/clap/issues/5731">#5731</a>
from epage/bash</li>
<li><a
href="https://github.com/clap-rs/clap/commit/5d7c16c60e6db5af3051136abd0c57c268e0b050"><code>5d7c16c</code></a>
fix(complete): Adjust how IFS is passed to clap</li>
<li>See full diff in <a
href="https://github.com/clap-rs/clap/compare/clap_complete-v4.5.26...clap_complete-v4.5.27">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=clap&package-manager=cargo&previous-version=4.5.26&new-version=4.5.27)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)

</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
V3_GIT_ORIGIN_REV_ID: b6d80eb3df6043dabcc03dce5c2381ce61e7881c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console c/v3-console k/enhancement New feature or improve an existing feature s/triaged This has been reviewed by Hasura v3
Projects
None yet
Development

No branches or pull requests