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

Structure: Schema type is required

Certain nodes within the desk structure requires knowledge of which schema type a document or a list of documents operates on.

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

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

Was this article helpful?