graphql / graphql/graphiql

Plugin: lifecycle hook to enable prettifying queries on load

Open
#828 10 comments 0 reactions 0 assignees View on GitHub
graphiql potential plugin
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.