data query error message

Hi I’m getting an error message “TypeError: Error.captureStackTrace is not a function” when trying to use wixData.query. I have tried everything I can think of but it just will not work. My code is as follows:

return wixData.query(“members”) // error message is showing here
.eq(“userId”, userId)
.and(“role”, “hpd”)
.find()
.then((results) => {
console.log(results + " yay again")

thank you

Worked it out, .and needed to be a full new data query instead of just the values.

Hey, @hiowhi03 can you tell what do you mean by that?
I’m stuck in the same problem unable to figure out.
Thanks!