🚀 Master the language of AI with our brand new course: "Prompt Engineering for Everyone" Learn more

Offered By: IBM

Execute CRUD Operations in MongoDB

In this guided project, you will work with create-read-update-delete (CRUD) operations by creating and making changes to documents with MongoDB.

Continue reading

Guided Project

Database

405 Enrolled
4.3
(80 Reviews)

At a Glance

In this guided project, you will work with create-read-update-delete (CRUD) operations by creating and making changes to documents with MongoDB.

CRUD operations create, read, update, and delete document data. With MongoDB, you can use several methods to perform these operations in real time. You will explore how to insert a document into a group of documents, which is called a collection. You will then retrieve documents from a collection, modify documents in a collection, and remove documents from a collection.

MongoDB is a popular non-relational database that supports various data types, including dates and numbers. Explore the range of CRUD capabilities by applying filters, running queries, creating lists, and finding counts.

In this guided project, you will start and connect to the MongoDB server. Once in the database, you will create a collection and add several documents to it. You will practice finding document counts and discover several ways to read and query documents including creating lists, filtering lists, and using a projection document. You will explore ways to limit, name, and update fields. After trying out these useful operations, you will remove documents in your collection by defining deletion criteria. Then you will delete all the documents at one time by executing a single remove operation.

Executing the operations in this guided project will set you up to manage MongoDB databases successfully as you proceed to perform more complex database operations.

A Look at the Project Ahead
Once you have completed this project, you'll be able to:
  • Describe the process of setting up the MongoDB environment
  • Create documents in MongoDB with the insert method
  • Read documents by listing them, counting them and matching them to a query
  • Update and delete documents in MongoDB based on specific criteria

What You’ll Need
Just a web browser!

Everything else is provided to you via the IBM Skills Network Labs environment, where you will have access to the MongoDB service that we offer as part of the IBM Skills Network Labs environment. This platform works best with current versions of Chrome, Edge, Firefox, Internet Explorer, or Safari.

Your Instructor
Ramesh Sannareddy

Estimated Effort

30 Minutes

Level

Beginner

Skills You Will Learn

MongoDB

Language

English

Course Code

GPXX0QD0EN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!