//backend code
function functionName(a,b)
{
return wixData.query("database")
.eq("a", a)
.eq("b", b)
.find()
.then((res) => {
return (res)
})
}
I think you forgot the return before wixData
//backend code
function functionName(a,b)
{
return wixData.query("database")
.eq("a", a)
.eq("b", b)
.find()
.then((res) => {
return (res)
})
}
I think you forgot the return before wixData