$ne

Filter records where a column’s value is not equal to the specified value. The $ne method is used to exclude entries that match a specific value in a given field, allowing for filtering based on inequality.

await Member.$search({
    $where: {
        age: {
            $ne: 15
        }
    }
});

Last updated