How AI is powering better personalization in e-commerce [with Vercel]. Sign up now

Do Objects count towards Sanity's Document limit?

3 repliesLast updated: Nov 29, 2025

Hey all. Just wondering if Objects contribute to Sanity's Document limit for a given pricing tier or not? Thanks!
AI Update

No, objects do not count toward Sanity's document limit for a given pricing tier!

Here's the key distinction:

What counts as a "document":

What doesn't count:

Document limits by plan: According to the technical limits documentation:

What you should be aware of: While objects don't count as documents, they do contribute to your attribute limit. An attribute is any unique path/datatype combination across all documents in your dataset. So if you have complex nested objects with many fields, those fields count as attributes.

For example, an array like [2.718, 3.14, "abc", "def", true] counts as 4 attributes (1 for the array itself, plus 3 for the datatypes: float, string, and boolean).

Bottom line: Use as many object types as you need to structure your content effectively - they won't eat into your document count, only into your attribute limit, which is typically quite generous.

Show original thread
3 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions