I have checked many other posts but cannot seem to get the .contains function to return items.
I have a database called “users”, I run a query with .contains(“name”, term) where ‘term’ is “Co”, this always returns no items even though ‘Connor’ is a name in the DB.
Code is below, thanks in advance.
export function memberSearch(term){
return wixData.query("users")
.contains("secondName", term)
.find(options)
.then((result) => {
return result
})
.catch((err) => {
return err
})
}