Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

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

3 replies
Last updated: Mar 13, 2024
What's the difference between
object
type and
document
type
Mar 5, 2024, 11:08 AM
https://www.sanity.io/docs/object-type
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
document
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?