✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Structure: Document schema type required

Certain nodes within the desk structure requires a document schema type to be defined in order to operate.

Setting a schema type can be done by calling the schemaType() method:

S.document()
  .id('car-editor')
.schemaType('car')
.documentId('am-db9')

Was this article helpful?