Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
child: () =>
S.documentTypeList('author')
.title('Developers')
.filter('_type == $type && role == $role')
.params({type: 'author', role: 'developer'})
.initialValueTemplates(S.initialValueTemplateItem('author-developer'))
}),
S.documentTypeList('author').child(authorId =>
S.documentTypeList('book')
.title('Books by author')
.filter('_type == $type && author._ref == $authorId')
.params({type: 'book', authorId})
.initialValueTemplates([S.initialValueTemplateItem('book-by-author', {authorId})])
)