d-exclaimation/pioneer

Apollo Sandbox Self-Hosted Option

Closed this issue · 6 comments

Apollo Sandbox now allows you to embed Apollo Sandbox on your own website and localhost. This could be a nice option to add support for this and it may prevent needing to make CORS changes. I would imagine it would be a similar process to how GraphiQL and the localhost version of BananaCakePop are hosted.

https://www.apollographql.com/blog/tooling/graphql-ide/how-to-use-apollo-sandbox-on-your-localhost/

I was thinking of implementing this as well. I was aware that embeddable Apollo Studio Explorer is a thing, but the regular Apollo Studio Explorer require an account, so I didn't do anything about it. I wasn't aware that the Sandbox version is also embeddable.

I'll definitely look into it.

I tried the embedded sandbox and it does work well (no account needed), but you can't run subscription operations as it is unsupported on embedded sandbox, which is a big downside compared to the other IDEs.

Screenshot 2022-06-20 at 4 35 23 AM

Oh I didn't realize that. That's a big downside. Maybe this is something better for the future? I'm sure they'll add support eventually.

I'll probably going to still add it in, but it won't replace the redirect option until they add support for subscriptions in embedded sandbox.

Sounds like a plan.

The option for embedded sandbox should be available in v0.7.1