TypeError: $w(...).setFilter(...).contains is not a function

i used conditional dropdown filtering and below is the code for my search button but everytime i click the button i get error message. PLEASE HELP!!!

Hey man please write the code like this one

let brand=wixData.filter().contains("brand",$w('branddropdown').value);
let model=wixData.filter().contains("model",$w('modeldropdown').value);
let condition=wixData.filter().contains("condition",$w('conditiondropdown').value);
let fuel=wixData.filter().contains("fuel",$w('fueldropdown').value);
let transmission=wixData.filter().contains("transmission",$w('transmissionropdown').value);
let location=wixData.filter().contains("location",$w('locationdropdown').value);
$w('#dataset').setFilter(brand.and(model.and(condition.and(fuel.and(transmission.and(location))))))

Use this code please then tell is that work or not

Or you could just add on the extra opening parentheses in the Wix Dataset setFilter function and then add the extra closing parentheses underneath or at the end of your code.

$w("#myDataset").setFilter( wixData.filter()   

Examples

Set a dataset’s filter

This example filters a dataset to only have items where the lastname field starts with “D” and the age field is greater or equal to 21.

import wixData from 'wix-data';

// ...

$w("#myDataset").setFilter( wixData.filter()
  .startsWith("lastName", "D")
  .ge("age", "21")
);