我正在尝试过滤所有没有类别的产品(这是参考数组)并且找不到如何做到这一点。
S.listItem()
.title('Without category')
.id('productsWithoutCategories')
.child(
S.documentList()
.title('Without categories')
.menuItems(S.documentTypeList('product').getMenuItems())
.filter('_type == $type && !category')
.params({ type: 'product' })
)
!category
不工作。我将不胜感激。