Skip to content

1.17.0

Compare
Choose a tag to compare
@RAORelewise RAORelewise released this 30 Aug 08:56
· 231 commits to main since this release
5712752

What's Changed

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