Finding Documents with Filters

A filter object tells find and findOne which documents you want, with operators such as $gte and $in for comparisons, dot notation for a field inside a field, an ObjectId to find one document by its id, and a projection to send back only the fields you need.

By

Updated

Cheat sheet: Finding Documents with Filters
Category
Node.js
Level
Apprentice
Tags
_id and ObjectId, find (mongodb), mongodb, nodejs, nosql, Projection (mongodb), Query Filter, Query Operators