Querying and Modifying Data in MongoDB


Querying and Modifying Data in MongoDB

Authors: Pinal Dave, Dan Geabunea, Axel Sirota, Esteban Herrera , Douglas Starnes

With MongoDB you will obtain a document-based data model which makes even the most complex tasks simple. This database system is extremely flexible with a wide range of features... Read more

What You Will Learn

  • The rich query functionality of MongoDB
  • Application of MongoDB indexes
  • Understanding what security rules can be applied to different types of data
  • What are the operations supported on data when using MongoDB


  • JSON
  • Javascript


Learn the core query and search semantics of MongoDB, and how they map into the document database structure used by MongoDB.

Foundations of Document Databases with MongoDB

by Pinal Dave

May 6, 2020 / 2h 28m

2h 28m

Start Course

Every single day we come across lots of data and every a bit of data needs a place to be stored. In this course, Foundations of Document Databases with MongoDB, you'll learn foundational knowledge in MongoDB, a general-purpose, document-based, distributed database built for modern application developers and for the cloud era. First, You'll explore what a document database is and how it differs from relational SQL. Next, You'll discover why we should use MongoDB. Finally, You'll get an idea of how to get started with MongoDB, efficiently. By the end of this course, you will be confident to get started with your very first MongoDB setup. I will provide all the necessary information and code samples so you can get started immediately.

Table of contents
  1. Course Overview
  2. Introduction to MongoDB
  3. CRUD Operations: Creating Objects
  4. CRUD Operations: Retrieving Objects
  5. CRUD Operations: Updating and Deleting Objects
  6. Relating Common SQL Concepts and Semantics to MongoDB

Querying Data from MongoDB

by Dan Geabunea

Jun 11, 2020 / 1h 45m

1h 45m

Start Course

MongoDB occupies the 5th position in database usage, making it a popular and trending technology. In this course, Querying Data from MongoDB, you will learn how to efficiently create Mongo DB queries. First, you will explore using the Mongo shell to connect to Mongo servers and write database queries. Next, you will discover how to filter data by using the most common query operators. Then, you will move on to implementing sorting, paging and field selection. Beyond this, you will learn how to write complex queries such as nested documents or geospatial data. Finally, you will gain an understanding on handling edge cases caused by the schema-less nature of MongoDB, such as null values, missing fields or queries by data type, as well as querying array fields. By the end of this course, you should feel confident tackling a wide range of queries in real MongoDB databases. In fact, you will be able to use these skills in real projects right away.

Table of contents
  1. Course Overview
  2. Writing Your First Mongo Query
  3. Understanding Query Filters and Query Operators
  4. Creating Complex Queries
  5. Working with Arrays

Searching for Text in MongoDB

by Axel Sirota

Jun 23, 2020 / 1h 39m

1h 39m

Start Course

MongoDB is amazing! It is fast, reliable, highly scalable, and flexible; it is so flexible that since its beginnings it allows for full text search. In this course, Searching for Text in MongoDB, you will learn everything you need to know about text searches and indices. First, you will learn about text queries in MongoDB. Next, you will discover how to refine and order your results by relevance. Finally, you will explore how to handle corner cases with multiples languages, case-sensitiveness, and diacritic sensitiveness in your collections. When you have finished this course, you will have a foundational knowledge of full text search in MongoDB that will enable you to create pretty amazing and complex queries to search for text patterns!

Table of contents
  1. Course Overview
  2. Creating a Simple Text Query
  3. Refining Text Queries
  4. Creating a Weighted Text Index
  5. Creating a Non-default Text Index


Execute geospatial queries, and learn how to modify documents stored in MongoDB.

Querying Geospatial Data from MongoDB

by Esteban Herrera

Jul 17, 2020 / 1h 31m

1h 31m

Start Course

Analyzing spatial data doesn't have to be a difficult task. In this course, Querying Geospatial Data from MongoDB, you’ll learn to execute geospatial queries in MongoDB. First, you’ll explore the concepts needed to understand the geospatial features of MongoDB. Next, you’ll discover how to store geospatial data in GeoJSON format. Finally, you’ll learn how to find places within a certain area and close to a point. When you’re finished with this course, you’ll have the skills and knowledge of MongoDB and geospatial data needed to execute geospatial queries efficiently.

Table of contents
  1. Course Overview
  2. Getting Started with MongoDB’s Geospatial Features
  3. Storing Geospatial Data in GeoJSON Format
  4. Finding Places within a Certain Area
  5. Finding Places near a Point

Modifying Data in MongoDB

by Douglas Starnes

Jul 27, 2020 / 2h 4m

2h 4m

Start Course

While querying data in a database of any kind is a big part of its purpose, more functionality is needed to manage that data. In this course, Modifying Data in MongoDB, you'll delve into the C, U, and D of CRUD, or create, update, and delete from the view of a MongoDB administrator or developer. First, you'll learn how to take advantage of operators and filters to control these operations. Next, you'll discover how to use the JavaScript API in the command line mongo shell to perform these operations. Finally, you'll explore a small web app to learn how to put these operations into practice. By the end of this course, you'll have the necessary knowledge of the write operations in MongoDB in order to effectively utilize them in your own projects.

Table of contents
  1. Course Overview
  2. Creating Documents in MongoDB
  3. Deleting Documents in MongoDB
  4. Updating Documents in MongoDB
  5. Upserting Documents in MongoDB
  6. Bulk Write Operations in MongoDB
  7. A CRUD App


Aggregate data across multiple documents, and execute more advanced queries using map-reduce against MongoDB.

Aggregating Data across Documents in MongoDB

by Axel Sirota

Jun 23, 2020 / 1h 51m

1h 51m

Start Course

MongoDB is amazing! It is fast, reliable, highly scalable and flexible; and at the core of its flexibility, there is the Aggregation Framework. In this course, Aggregating Data across Documents in MongoDB, you will learn all the ways in which one find data throughout many documents. First, you will learn the Aggregation Framework in MongoDB, comparing it to Map Reduce and understanding the $match and $project stages. Next, you will discover about grouping our results and how to handle arrays with $unwind. Finally, you will explore how to save advanced reports on multiple types of aggregations. When you've finished this course, you will have foundational knowledge of the aggregation pipelines in MongoDB that will help you make the most complex operation seem incredibly easy!

Table of contents
  1. Course Overview
  2. Meeting the MongoDB Aggregation Framework
  3. Adding Stages to a Collections Pipeline
  4. Handling Advanced Operations in Aggregation

Coming Soon

Querying Data Using Map-reduce in MongoDB

Coming Soon

by Buddhini Samarakkody

Offer Code *
Email * First name * Last name *
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By providing my phone number to Pluralsight and toggling this feature on, I agree and acknowledge that Pluralsight may use that number to contact me for marketing purposes, including using autodialed or pre-recorded calls and text messages. I understand that consent is not required as a condition of purchase from Pluralsight.

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit