$not
Filter records where a column’s value does not match the specified condition. The $not method is used to exclude entries that meet a given criterion, including NULL checks or specific values.
await Member.$search({
$where: {
username: {
$not: null
}
}
});
Last updated