MongoDB

MongoDB Connection String URI Format Example

1. Introduction MongoDB is the most famous and widely used NoSQL database. It has been used in almost every programming language today and hence it is important to setup a standard way of connecting to the database. In this article, we discuss one such common item which needs to be understood and used while establishing a database connection to MongoDB ...

Read More »

MongoDB Elasticsearch Tutorial

1. Introduction NoSQL, as Techopedia explains, “is a class of database management systems (DBMS) that do not follow all of the rules of a relational DBMS and cannot use traditional SQL to query data. A NoSQL database does not necessarily follow the strict rules that govern transactions in relational databases. These violated rules are known by the acronym ACID (Atomicity, ...

Read More »

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 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 take ...

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 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 take ...

Read More »

Java MongoDB Authentication Example

Hello readers. In this tutorial we will show 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 the ...

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 »