MongoDB

MongoDB Geospatial Query Operators Example

1. Introduction to Geospatial Queries In this post, we feature a comprehensive Example on MongoDB Geospatial Query Operators. MongoDB is a JSON based document storage database. MongoDB stores the records in the form of unstructured JSON documents. It allows the flexibility of having varying number of columns for every record. This feature of MongoDB has been put to action by ...

Read More »

Java MongoDB Iterating through a Collection

Hello readers, in this tutorial, we will show how to iterate the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s take ...

Read More »

Java MongoDB Select Collections Example

Hello readers, in this tutorial, we will show how to select or query the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further ...

Read More »

Java MongoDB Update Document Example

Hello readers, in this tutorial, we will show readers how to update the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s ...

Read More »

Java MongoDB Insert a Document Example

Hello readers, in this tutorial, you will learn how to insert the documents into a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s take ...

Read More »

Java MongoDB Query Document Example

Hello readers, in this tutorial, we will show readers how to query the documents of a Mongo collection using the Java driver. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow the below steps. It is very simple, but before moving further let’s ...

Read More »

Java MongoDB Authentication Example

Hello readers, in this tutorial, we will show readers how to start the Mongo database in secure mode and use the Java driver to connect and authenticate the Mongo database with the provided credentials. 1. Introduction If you have installed the MongoDB application (version 3.6.X) on Windows or Ubuntu operating system and you wish to learn this tutorial, then follow ...

Read More »

MongoDB Field Update Operators Tutorial

Hello readers, in this tutorial, we will understand the different Field Update Operators available in the Mongo database. Let’s study in brief the different ways in which these operators can be used. Table Of Contents 1. Introduction 1.1 What is MongoDB? 1.2 Why MongoDB? 2. MongoDB Field Update Operators Tutorial 2.1 $inc Operator 2.2 $rename Operator 2.3 $set Operator 2.4 ...

Read More »

MongoDB Aggregation Example

Hello readers, aggregation in Mongo database is an operation that processes the multiple documents and returns a single computed result. In this tutorial, we will learn how to use the different aggregation operations in the Mongo database. 1. Introduction If you have installed the MongoDB application (version 3.6) on Windows or Ubuntu operating system and you wish to learn the ...

Read More »

MongoDB and JSP/Servlet Example

Hello readers, in this tutorial, we will learn how to connect the Servlet with the Mongo database. For this tutorial, we’ll have a login form to validate the user’s login credentials in the Mongo database. Table Of Contents 1. Introduction 1.1 What is Servlet? 1.2 What is JSP? 1.3 What is MongoDB? 2. MongoDB and JSP/Servlet Example 2.1 Tools Used ...

Read More »