$any
Filter records where a column’s value contains any of the specified elements or matches any condition in a given set. The $any method is used to retrieve entries where the value in the column matches at least one item from a list or array, making it ideal for searching within collections, arrays, or sets.
await Member.$search({
$where: {
badges: {
$any: [['VIP']]
}
}
});
Last updated