Filtering a dataset

@bilisanas
Hi i tried the code myself and i didn’t had anyproblem with this.

$w.onReady( function () {
$w.onReady( async function () {
var newFilter = wixData.filter();
var filterCat = newFilter.contains( ‘type’ , “cat” );
var filterDog = newFilter.contains( ‘type’ , “dog” );

await $w( ‘#dataset1’ ).setFilter(filterCat.or(filterDog))
$w( ‘#dataset1’ ).onReady( () => {
$w( “#repeater1” ).expand()
})
})
});

This filters dog and cat

Don’t forget to change the dataset and repeater name since its my code.

kind regards,
Kristof.