Back to Developer Roadmap

$not

src/data/roadmaps/mongodb/content/not@qaUj9916Fh4BtiLz_pwQs.md

4.0605 B
Original Source

$not

The $not operator in MongoDB performs logical negation on a query expression, returning documents that do not match the specified condition. It accepts a single query expression and inverts its result. $not is useful for excluding specific patterns, finding documents that don't meet certain criteria, and creating inverse filters in complex queries.

Visit the following resources to learn more: