Is the _key of an array item unique across the document type?

2 replies
Last updated: Apr 29, 2021
Does anyone know if the
_key
of an array item is unique across the document type (as opposed to the document)? https://www.sanity.io/docs/array-type#92296c6c45ea
Apr 29, 2021, 2:04 PM
The
_key
only needs to be unique within the array itself, so I imagine that’s the way Sanity implements key assignment, too.
Apr 29, 2021, 2:09 PM
Ah I see, that makes sense, thanks!
Apr 29, 2021, 2:11 PM

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.

Was this answer helpful?