🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

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?