-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL Playground retired, switch to GraphiQL? #600
Comments
I've tagged this as decision needed because GraphiQL is still behind Playground. |
I think it is good to switch to GraphiQL although I will miss the color scheme on Playground. GraphiQL does autofill some of the queries making it easier to use. |
Let's keep an eye on graphql/graphiql#2328 Once released, if Ariadne adopts it would be handy to allow passing settings so the user can configure the theme and other params #469 |
My plan for this is to have an option on |
Can we get the GraphiQL2 with the explorer plug in? https://graphql.org/swapi-graphql? << without explorer https://www.youtube.com/watch?v=8DmtCPX4tdo << with explorer panel (around 2:09 minutes into video) |
Looks nice, @davlee1972. Is that version of GraphiQL available on CDN? We don't want to maintain and serve custom API explorer builds for Ariadne. |
Yes this is the latest version: But the Explorer functionality is a plug-in.. The YouTube video above goes through the plug-in installation steps. At some point GraphiQL will include the Explorer I believe and it is discussed in: graphql/graphiql#2328 |
I understand, but Ariadne never served any static files for API explorers, only HTML that pulled assets from CDN. |
There is a HTML file for this.. Examples Found more info on the explorer plug-in here: CDN bundles |
The last index.html works.. I just plugged it into Ariadne
I did have to modify the index.html to swap in the URL of my graphql server and default query to show. These can probably be part of some initialization routine to modify the html.
|
After some experimentation (and having to implement custom template engine) I've got this: So explorers are strategy objects, and each explorer is free to implement custom features specific to it. And if you are unhappy, you can always implement your own behaviour without having to dive into Ariadne's code. |
Here's the apollo client html, but it has a lot of extra apollo links in the html.. https://studio.apollographql.com/public/star-wars-swapi/explorer?variant=current
|
I'm not sure we can do that in Ariadne core, seeing how Apollo keeps client part of their product, and there's no mention anywhere about running IDE on your own location or licensing. |
I'm not sure.. the github code says MIT.. https://www.apollographql.com/docs/studio/explorer/sandbox/ https://github.com/apollographql/embeddable-explorer/blob/main/LICENSE |
Perfect, this is what I was looking for! |
@davlee1972 support for multiple explorers has been merged to Ariadne. I've did a skim of Apollo's client and decided to open separate issue for that, but I'll prioritize other work for 0.17 release now. If you can contribute it with separate PR, I'll be happy to merge it. |
GraphQL Playground has been retired, and will no longer receive updates: graphql/graphql-playground#1143
Down the line, I think it would make sense for Ariadne to switch to GraphiQL because of this.
The text was updated successfully, but these errors were encountered: