Skip to content

Support for Apollo Sandbox (instead of Playground?) #1721

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

Closed
juergenzimmermann opened this issue Aug 26, 2021 · 2 comments
Closed

Support for Apollo Sandbox (instead of Playground?) #1721

juergenzimmermann opened this issue Aug 26, 2021 · 2 comments

Comments

@juergenzimmermann
Copy link

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Apollo 2 was integrated with Playground which is retired since April 2020. Please see graphql/graphql-playground#1143.

Expected behavior

Apollo 3 is now offering Apollo Sandbox: https://www.apollographql.com/blog/announcement/platform/apollo-sandbox-an-open-graphql-ide-for-local-development. There is ApolloServerPluginLandingPageDisabled and ApolloServerPluginLandingPageLocalDefault in the npm package apollo-server-core. It would be nice to have a config option for Apollo Sandbox.

What is the motivation / use case for changing the behavior?

Playground is retired since 1.5 years.

@rares-lupascu
Copy link

the only thing I did not get to work is the new subscription dependencies on "grahpql-ws" ... everything else is working for me in apollo studio running a local dev nestjs.

@kamilmysliwiec
Copy link
Member

I just realized we haven't added a section on how to use Apollo Sandbox with the latest version, thanks for pointing that out!

Updated the docs https://docs.nestjs.com/graphql/quick-start#apollo-sandbox

image

Now, why this isn't turned on by default given that the graphql-playground is retired:

  • as this is just a local dev IDE, there's no risk associated with this change
  • Apollo Sandbox isn't compatible with browsers like Brave
  • local development shouldn't require any external in-browser tools - using something built-in makes it way easier, especially for newcomers

We'll very likely migrate away and move to GraphiQL eventually, as recommended here graphql/graphql-playground#1143 (once it's stable etc).

@nestjs nestjs locked and limited conversation to collaborators Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants