$in

Filter records where a column’s value is within a specified list of values. The $in method is used to retrieve entries that match any value from a provided array, making it useful for checking multiple possible values in a single query.

await Member.$search({
    $where: {
        badges: {
            $in: [["VIP"]]
        }
    }
});

Last updated