background icons
background icons 2

Video Belajar

Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel Engineering Digest.

Engineering Digest

22878

Comparison operators in MongoDB in Hindi ( $eq, $ne, $lt, $gt, $lte, $gte, $in & $nin )

🟡 Get 1 to 1 coaching with me: https://topmate.io/engineeringdigest
🟡 Donate: https://paypal.me/engineeringdigest
🟡 Perks: https://www.youtube.com/@EngineeringDigest/join

🔴 Discord: https://discord.gg/FHB3vUmgKm
🔴 Twitch: https://www.twitch.tv/engineeringdigest
🔴 Personal YouTube Channel: https://www.youtube.com/@thevipulvats
🔴 Instagram: https://www.instagram.com/thevipulvats
🔴 Twitter: https://twitter.com/thevipulvats
🔴 LinkedIn: https://www.linkedin.com/in/thevipulvats/
🔴 Website: https://engineeringdigest.net

In MongoDB, comparison operators are used to compare values in query expressions and to filter documents based on the comparison results. Here is a list of some of the comparison operators available in MongoDB:

$eq: This operator tests for equality and returns true if the operands are equal.

$ne: This operator tests for inequality and returns true if the operands are not equal.

$gt: This operator tests for greater than and returns true if the left operand is greater than the right operand.

$gte: This operator tests for greater than or equal to and returns true if the left operand is greater than or equal to the right operand.

$lt: This operator tests for less than and returns true if the left operand is less than the right operand.

$lte: This operator tests for less than or equal to and returns true if the left operand is less than or equal to the right operand.