Skip to content

Glossary: MongoDB

$in / $nin

Also written: $in, $nin

Query operators that match a value that is in, or not in, a list. `{ category: { $in: ["mug", "notebook"] } }` finds mugs and notebooks.

Where the book teaches it

Related terms

$neQuery operator