Help articles
Structure: Title is required
Certain nodes within the Structure tool require a title. The title is used mainly for presentation concerns, but is also 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'})