Filtering
Operations
- Filter
- Sort
- Offset / Limit
- Include
Filter
moltin.product.filter(operator: .eq, key: "name", value: "ProductName").all {
...
}
Sort
moltin.product.sort("order").all {
...
}
moltin.product.sort("-order").all {
...
}
Offset / Limit
moltin.product.limit(10).offset(20).all {
...
}
Include
moltin.product.include([.mainImage, .files]).all {
...
}
Combining Operations
moltin.product.sort("-name").include([.mainImage]).limit(20).all {
...
}