Skip to main content

Posts

Showing posts from March, 2020

MongoDB | Querying Collections find()

Objective of this Blog is to build some next level understanding about mongodb find() method. find() method is to query the mongodb collections, similar to select statement in RDBMS Databases, and it return the documents asked for in selection criteria. Blog will cover below topics: 1. Comparison Query Operators 2. Logical Query Operators 3. MongoDB projections 4. Sort and limit methods List of Comparison Operators along with description: $eq - Matches values that are equal to a specified value. $gt -  Matches values that are greater than a specified value. $gte- Matches values that are greater than or equal to a specified value. $in-   Matches any of the values specified in an array. $lt-   Matches values that are less than a specified value. $lte- Matches values that are less than or equal to a specified value. $ne-   Matches all values that are not equal to a specified value. $nin- Matches none of the values specified in an array....