In the previous posts we have seen examples
on how we can query a MongoDB using Java. We have seen different ways in which we can invoke find() method and how to do comparison querying and logical querying. This post will focus
on updating of our existing documents present in our mongo database using Java.
Update MongoDB Java Example :
Here also, we will continue with the same example that we have used in our previous posts. Continue reading Document Replacement using update MongoDB Java
This post will focus on the logical
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
In the previous post we have seen
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