Set default options for GraphQLPlayground
See original GitHub issueThere was a PR to pass extra options to GraphQLPlayground
but it was closed https://github.com/mirumee/ariadne/pull/315/files
Is there an option to support it? We have a problem with authentication and every single person that wants to use playground needs to remember to set
"request.credentials": "include",
on every user agent.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:7 (4 by maintainers)
Top Results From Across the Web
GraphQL Playground - Apollo GraphQL Docs
The Apollo Server constructor contains the ability to configure GraphQL Playground with the playground configuration option. The options can be found on ...
Read more >Complete guide to GraphQL Playground - LogRocket Blog
In this guide, I'll introduce you to GraphQL Playground and walk you through some basic concepts to help you make the most of...
Read more >GraphQL + TypeScript - A progressive Node.js framework
For Express and Apollo (default) $ npm i @nestjs/graphql @nestjs/apollo graphql ... make sure to enable the disableHealthCheck setting in the GraphQLModule ...
Read more >GraphQL | RedwoodJS Docs
On the web side, Redwood uses Apollo Client by default though you can swap it ... to the GraphQL response headers which you...
Read more >GraphQL Playground - Apollo Server
When NODE_ENV is set to production , GraphQL Playground (as well as ... ability to configure GraphQL Playground with the playground configuration option....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We are moving to GraphiQL 2 but we’ll keep playground support as an opt-in, and part of this support is support for setting default options for Playground from python code:
Hi,
first of all, good work. Thanks!
I was facing the same issue and found a solution by deriving my own GraphQL class:
I added a “playground.html” to my static content folder and modified it:
and then used that derived MyGraphQL class to do all the normal stuff: