🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Retrieving a list of schemas on Content Lake is not possible, but document and object types can be queried. Schemas are found in Studio codebase.

1 replies
Last updated: Jun 11, 2023
Hey folks, another question but maybe more simple. Can I retrieve a list of all schemas I have on the content lake? I can't find a way to do that
Jun 11, 2023, 1:00 PM
Hi
user B
. The schemas don’t live on your Content Lake, so it won’t be possible to query for them. You can retrieve all the document and object `_type`s with the query
array::unique(*._type)
, but the schemas themselves will be found in your Studio codebase.
Jun 11, 2023, 3:10 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?