I have a problem when I filter my dataset with "eq."

I seek to filter cell phone models with the specifications that the user wants, and that I achieve with Corvid.

import wixData from ‘wix-data’ ;

$w.onReady( function () {
//TODO: write your page related code here…
});

export function filter_click(event) {
$w( “#dataset1” ).setFilter(wixData.filter()
.contains( “cellPhoneBrand” , $w( “#dropdown11” ).value)
.contains( “price” , $w( “#dropdown1” ).value)
.eq( “operatingSystem” , $w( “#dropdown3” ).value)
.eq( “capacity” , $w( “#dropdown14” ).value))

}

If all my options are “Contain”, it filters my dataset perfectly; the problem comes with the “eq”. If I decide that the dropdown values ​​equal (eq) to the values ​​of my data set, it no longer filters; once I limit the filtering to containing the dropdown values ​​it works again.

Hi @felipebenjamin1810

The .eq() filter function refines a filter or query to only match documents where the value of the specified field equals ( exactly ) the specified value, so any slight difference can lead to ignore the result.

I suggest that you double check the values in your database, maybe a space was introduced to the original value or something.