Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Difference between `object` type and `document` type in Sanity.io.

3 replies
Last updated: Mar 13, 2024
What's the difference between
type and
Mar 5, 2024, 11:08 AM
By default, object types cannot be represented as standalone documents in the data store. To define an object type to represent it as a document with an ID, revision, as well as created and updated timestamps, you should define with the
type. Apart from these additional fields, there’s no semantic difference between a document and an object.
Mar 5, 2024, 11:18 AM
Objects does not appear in the Content area of the sidebar, but document type does.
Mar 5, 2024, 2:26 PM
Hi! Trying to understand this too. What is the use of Objects in schemas if they cant be represented in the data store?
Mar 13, 2024, 10:34 AM

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?