How do i filter a dataset by its name & collections field?

This is the code:

import wixData from ‘wix-data’;
$w.onReady( function () {
});
export function searchButton_click(event, $w) {
let searchValue = $w(‘#searchField’).value;
wixData.query(‘Stores/Products’)
.contains(‘name’, searchValue)
.contains(‘collections’, ‘Prescription’)
.find()
.then((result) =>{
console.log(result.items);
})
. catch ((error) => {
console.log(error);
})
}

This is not code for datasets but for direct querying the collection directly.