Filtering like a pro
Operators: $gt, $gte, $lt, $in, $and, $or, $exists.
Projection selects fields: { name: 1, _id: 0 } returns name only. 1 includes, 0 excludes (not both on same level).
Output
Press Run to execute your code.
Operators: $gt, $gte, $lt, $in, $and, $or, $exists.
Projection selects fields: { name: 1, _id: 0 } returns name only. 1 includes, 0 excludes (not both on same level).