MongoDB Tutorial

  • Home
  • Getting Started
  • CRUD
  • Indexes

MongoDB Tutorial

Welcome to the MongoDBTutorial.org!

If you’re looking for a quick way to master MongoDB development from scratch, you’re at the right place.

On this MongoDB tutorial website, you’ll learn how to:

  • Get the MongoDB database server up and running quickly.
  • Interact with data on MongoDB efficiently including creating, reading, updating, and deleting (CRUD).
  • Take advantage of indexes for speeding up queries.
  • Master the aggregation framework.
  • Leverage all other useful features of MongoDB in your projects.

MongoDB is one of the most popular NoSQL databases. If you’re looking for a full-featured database that is scalable, flexible, and fast, you definitely need MongoDB.

Getting Started with MongoDB

Getting Started with MongoDB

This section helps you get started with MongoDB quickly. After completing the tutorial, you will have a basic understanding of MongoDB and how to use the mongo shell to interact with the MongoDB database server.
MongoDB CRUD

MongoDB CRUD

This section covers the basic of MongoDB CRUD operations including creating, reading, updating, and deleting documents.

Getting Started

  • What is MongoDB
  • Install MongoDB
  • MongoDB Basics
  • MongoDB Shell
  • MongoDB Data Types

Inserting Documents

  • insertOne
  • insertMany
  • mongoimport

Selecting Documents

  • findOne
  • find
  • Projection: Selecting Returned Fields

Comparison Query Operators

  • $eq: Equal To Operator
  • $lt: Less Than Operator
  • $lte: Less Than or Equal To Operator
  • $gt: Greater Than Operator
  • $gte: Greater Than or Equal To Operator
  • $ne: Not Equal To Operator
  • $in: In Operator
  • $nin: Not In Operator

Logical Query Operators

  • $and: Logical AND Opeartor
  • $or: Logical OR Operator
  • $not: Logical NOT Operator
  • $nor: Logical NOR Operator

Element Query Operators

  • $exists
  • $type

Array Query Operators

  • $size
  • $all
  • $elemMatch

Sorting & Limiting

  • sort(): Sorting documents
  • limit(): Limiting documents

Updating Documents

  • updateOne: Update one Document
  • updateMany: Update Multiple Documents
  • $inc: Increase / Decrease Field Value
  • $min: Update Field Value
  • $max: Update Field Value
  • $mul: Mutiply Field By a Number
  • $unset: Remove Fields
  • $rename: Rename Fields
  • Upsert

Deleting Documents

  • deleteOne
  • deleteMany

About MongoDBTutorial.com

This MongoDB Tutorial helps you master MongoDB quickly.

Recent Tutorials

  • MongoDB Indexes
  • MongoDB limit
  • MongoDB sort
  • MongoDB Upsert
  • MongoDB Projection

Site Links

  • Home
  • Contact
  • About
  • Privacy Policy

Copyright © 2021 ยท By mongodbtutorial.org. All Rights Reserved.