👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

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?