Hi
I check the WixDataQuery, and can’t find .and() function. Maybe you can’t use it. I see .or() function. And the example is for one field, see below
import wixData from ‘wix-data’;
// …
wixData.query(“myCollection”)
.lt(“age”, 25)
.or( wixData.query(“myCollection”)
.gt(“age”, 65) )
.find() .then( (results) => {
let items = results.items;
…
; } );