wixData.query('YourDatabase')
.contains('YourFieldname', variableValue)
.find()
.then(results => {
let items = results.items;
console.log(items);
if (items.length > 0) {
//do something with the retrieved items
$w('#repeater1').data = filteredResults;
}
})
.catch(error => {
console.error('Error fetching data:', error);
});
This is just for showing the basic data retrieval from the database. Make sure that you have connected the repeater elements to the correct dataset.