Need Assistance?

support@tutorialshub.in

Query & Logical Operators

Logical Operators ($and, $or, $not, $nor)

ADVERTISEMENT
MongoDB Free Lesson
5 min read
ADVERTISEMENT

Combine multiple conditions using logical operators. Comma-separated fields in find({ a: 1, b: 2 }) perform an implicit AND, while $or and $nor take an array of condition objects.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you