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

Structure: Title is required

Certain nodes within the desk structure requires a title. The title is used mainly for presentation concerns, but will also be used to generate a node ID if one is not given.

Setting a title can be done by calling the title() method:

S.documentList()
  .id('cars')
.title('Cars')
.filter('_type == $type') .params({type: 'car'})

Was this article helpful?