Logical Operators in MongoDB in Hindi ( $not, $and, $or & $nor)

preview_player
Показать описание


In MongoDB, logical operators are used to combine multiple expressions in a query or to perform logical operations on individual expressions.

$and: This operator performs a logical AND operation on an array of expressions and returns true if all the expressions are true.

$or: This operator performs a logical OR operation on an array of expressions and returns true if at least one of the expressions is true.

$not: This operator performs a logical NOT operation on a single expression and returns true if the expression is false and false if the expression is true.
Рекомендации по теме
Комментарии
Автор

The explanation💙, Thank you sir. Gao konsa hai aapka.😂

asmittyagi
Автор

the way of your teaching is awesome sir from Pakistan

misbahsiddiqui
Автор

Make a similar playlist on postgresql !

Amazing playlist! 👍

pinkoyes
Автор

2:09 pr mere or condition nhi workk iya

evilytlive
Автор

take love ! coming soon 1M subscriber in sha allah

farhan
Автор

amazing explation brother....v nice and thank you so

mzohaib
Автор

sir nodejs per bhee ek playlist bana do

webtechlab
Автор

Employee.find({ $and: [{ age: { $lte: 11 } }, { hobbies: "Walk" }] });
Employee.find({ $and: [{ age: { $lte: 11 } }, { hobbies: { $eq: "Walk" } }] });
Employee.find({
$and: [{ age: { $lte: 11 } }, { hobbies: { $in: ["Walk"] } }],
});

all three will give the same result. any criteria like witch one is better or all are good?

AswiniSahu-rg