Join us live Sept. 27 – How Sanity and Vercel powered Morning Brew's transformation –>

Structure: Node ID required

All nodes within the desk structure has an ID assigned to it. Normally, the ID is assigned automatically based on the title of the item, but some items require a manually assigned ID.

One example of this is the document list item - its ID refers to a specific document ID, and as such it needs to be manually assigned.

Setting an ID can be done by calling the id() method:

.schemaType('article-set') .title('Site config')

Was this article helpful?