Get a peek at our latest innovations at Sanity Product Day on Dec 8th →

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

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
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
by default?

May 15, 2020, 7:49 PM

Thanks for the clarification!

May 15, 2020, 7:51 PM Get the most out of your content is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.