Logical Operators In MongoDB
MongoDB supports logical query operators. These operators are used for filtering the data and getting precise results based on the given conditions. The following table contains the comparison query operators: Matching values using $and operator: In this example, we are retrieving only those employee’s documents whose status is ACTIVE