Skip to content

Plugin: lifecycle hook to enable prettifying queries on load #828

Open
@rybon

Description

@rybon

Would it possible to auto prettify (opt-in, off by default) GraphGL calls when opening them in a GraphiQL window? I know there's a button in the UI to do this, but I would prefer to have this done as soon as a GraphQL URL is opened, so the extra button click is not needed. Perhaps this can be configured by setting an options object on the graphiql field? So instead of graphiql: true one could set graphiql: { autoPrettify: true } when for example setting up a express-graphql server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    graphiqlpotential pluginA potential plugin idea for later versions of GraphiQL

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions