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

Pretty Printed Key? #116

Open
tasugi opened this issue Jan 27, 2023 · 1 comment
Open

Pretty Printed Key? #116

tasugi opened this issue Jan 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@tasugi
Copy link

tasugi commented Jan 27, 2023

I'm using SWR with GraphQL and feel that keys are not easy to read because newlines(\n) are printed as it is.
For example, a key is shown as

@"\n query GetUser(\n $id: ID ) {\n getUser(\n id: $id\n ) {\n name\n }\n }\n",#id:"xyz",

And I prefer

query GetUser(
  $id: ID
) {
  getUser(
    id: $id
  ) {
     name
  }
}
id: "xyz"

Is there a plan to enable it?

@koba04 koba04 added the enhancement New feature or request label Jan 30, 2023
@koba04
Copy link
Owner

koba04 commented Jan 30, 2023

@tasugi
Thank you! That makes sense to me, so I'll consider it. I would be able to handle newlines, but special characters like @, # might be hard to be handled because I can't distinguish whether @ and # are parts of the key string or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants