1.17.0
What's Changed
- feat: add product data object sorting by @RAORelewise in #38
It is now possible to sort using DataObjects.
Code example:
.sorting(sorting => {
sorting.sortByProductDataObject('Variant', 'Ascending',
valueSelector => valueSelector.select('priceCollection', {
childSelector: childSelector => childSelector.select('price', {
filter: {
conditions: conditions => {
conditions.addLessThanCondition('validFromDate', nowUnixSeconds)
conditions.addGreaterThanCondition('validToDate', nowUnixSeconds)
conditions.addMinByCondition('price')
},
take: 1,
},
}),
}))
Full Changelog: 1.16.0...1.17.0