Try this one…
import wixData from 'wix-data';
$w.onReady(()=>{
$w('#minPrice').onChange((event)=> {
let $item = $w.at(event.context);
let minValue = parseInt($item('#minPrice').value);
console.log("Min-Value: ", minValue);
let maxValue = parseInt($item('#maxPrice').value);
console.log("Max-Vlaue: ", maxValue);
filterCollection(minValue, maxValue);
});
$w('#repeater1').onItemReady(($i, iData, index)=>{
console.log("Item-Data: ", iData);
$w('#pageElement').text = iData.xxxxxxxx;
});
});
function filterCollection(minValue, maxValue) {
wixData.query("Assets")
.between("price2", minValue, maxValue)
.find()
.then((results)=> {
console.log(results)
console.log(results.items)
$w('#repeater1').data = results.items;
});
}