Skip to content

Pretty Printed Key? #116

Open
Open
@tasugi

Description

@tasugi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions