👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

GraphQL Playground URL - Is it Publicly Accessible?

2 replies
Last updated: May 15, 2020
So I have just noticed that our GraphQL playground URL is just publicly accessible? Also you used to be able to do localhost:3333/__graphql .. this no longer works.
May 15, 2020, 7:40 PM
Hi Tharshan, indeed, the playground is publicly accessible - sorry if that wasn’t clear enough. You can deploy without the playground if you prefer, either by choosing the
n
option at the prompt or by running
sanity graphql deploy --no-playground
. Your deployed API may still be public though, depending on your dataset visibility.
Regarding the
/__graphql
URL, this might have been an earlier version that I’m not aware of, but could it be that you’re referring to Gatsby’s GraphiQL interface that is deployed at
localhost:8000/___graphql
by default?
May 15, 2020, 7:49 PM
Thanks for the clarification!
May 15, 2020, 7:51 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?