Hi,
I hope you can help me because I'm going crazy :(
![](https://static.wixstatic.com/media/190678_47022fe508cf4827bae6165e0af265a9~mv2.png/v1/fill/w_980,h_588,al_c,q_90,usm_0.66_1.00_0.01,enc_auto/190678_47022fe508cf4827bae6165e0af265a9~mv2.png)
I need to show the #itemsDataset images filtered but I have a problem with the price range filter. The prices of the products are in #dataset1, where they are referenced to #itemsDataset
I have this code:
wixData.query('Stores/Products')
.ge('price', 0)
.le('price', 400)
.find()
.then(results => {
let itemsIds = results.items.map(item => item._id);
let filter = wixData.filter().eq('_id', itemsIds);
return wixData.query('Items').setFilter(filter).find();
})
.then(items => {
$w('#itemsDataset').setItems(items.items);
})
.catch(err => {
console.log(err);
});