Tag Archives: JavaMongo

Logical Querying MongoDB Java Example

This post will focus on the logical Logical Querying MongoDB Java Example
operators that are available in
momgodb.I will use Java for the
illustration purpose of these
operators. You can use any of
the language for which mongo
driver is available. For the comparison operators you can refer the previous post here.
There are 4 logical operators that have been documented in mongodb specs.
We will continue with the same example that we have seen in the previous post. Continue reading Logical Querying MongoDB Java Example

Conditional Querying MongoDB Java Example

In the previous post we have seen  Conditional Querying MongoDB Java Example
different variations of find() method ,
but in real life we need much more than the exact matching  e.g we want to query  in ranges (using in ) , combine multiple conditions together (using OR , AND)  , using negation etc. In this post we will cover the comparison query operators that comes under the conditional querying in MongoDB :

Here, we will continue with the same example that we have used in the previous post , in Continue reading Conditional Querying MongoDB Java Example