MongoDB is the database layer of MVC architecture applications. It stores application data in an easy to query formats. It supports different data types like String, Number, Boolean, Date etc..
MongoDB Fundamentals
Learn the structure of mongoDB database and where documents are stored. Learn to perform CRUD(Create, Read, Update and Delete) operations with database.
- Introduction to MongoDB
- Databases, collections and documents
- Create operation in MongoDB
- Read(Query) operation in MongoDB
- Update operation in MongoDBects
- Delete operation in MongoDB
- Complex query operations in MongoDBPRO
- Complex update operations in MongoDBPRO
Exercises / Projects
- What does db.stat(), db.version() and db.help() does ?
- Create a database for your state and check whether created or not ?
- Create new collection inside state database and list it.
- Create a capped collection with maximum 5 documents
- Insert documents in state database
- Find single document using findOne() method in state database
- Update single document using updateOne() method
- Delete single document using delete() method
MongoDB Indexes & Aggregations
Learn to optimize the performance of the query operations using Indexes and get statistical data from entire dataset using aggregation framework.
- Indexes in MongoDB
- Single field index in MongoDB
- Compound Index in MongoDB
- Multikey index in MongoDB
- Text based index in MongoDB
- Aggregation pipeline in MongoDB
- $group operator in Aggregations
- $match operator in Aggregations
Exercises / Projects
- Why are indexes used in the database ?
- Create a single field index on name in address collection
- Create a compound index on state and city in address collection
- Create a multikey index on tags in articles collection
- Create text index on article's description in article collection.
- Follow instructions in link to find all active males whose age is >= 25 using aggregation
- Find all female with green eyes and apple as favoriteFruit.
- Count total male and females
- Count all 20+ females who have brown eyes