Skip to content

[Proposal] Better prettify functionality #999

@martin-888

Description

@martin-888

I'm a creator of graphql-prettier package which is a basic GraphQL formatter (done by graphql package) but its main feature is ability to remove duplicated fields and merge all fragments into one query/subscription/mutation what no other library can do at this time.

From my experience this feature is very useful and I'd be happy to create PR for adding it to playground. But before that I'd want to hear your opinions about this functionality and ideas how to add it to playground.

I'm sure that as a user I'd want to be able to turn this functionality off. But not sure if just editing of settings config would be the best way how to do that. Maybe good way would be shown context menu with option to turn it off/on after holding pressed left mouse on Prettify button for a while as it's done in chrome (open developer tools needed) with refresh button?

image

Any ideas, opinions? :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions