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

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?