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

Clarification on Sanity attribute limit for different document types

3 replies
Last updated: Oct 4, 2024
Hello all,w.r.t the Sanity attribute limit.

https://www.sanity.io/docs/attribute-limit
I understand that it's based on unique paths that hold content.
But do different document types duplicate this?

i.e. say I have two document types
page
and
post

They both have a
body
field which are both a string.
Would that field count as 2 attributes? or 1 attribute?

Thanks
🙂
Oct 3, 2024, 1:49 PM
Those would be separate attributes, I believe. I’m pretty bad at counting attributes but it’s possible it would be 4 paths total:
page
page.body
post
post.body
Oct 3, 2024, 2:37 PM
Thanks for the clarification 🙂
Oct 4, 2024, 9:34 AM
You’re welcome!
Oct 4, 2024, 5:48 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?