Plugin: lifecycle hook to enable prettifying queries on load
Open
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
Assessment
This issue has not been assessed yet.