Coding Exercises: Advanced MongoDB
43mAdvanced2022-11-10
Authors
John Cokos
Director of Curriculum at Code Fellows
Course details
MongoDB is one of the most popular nonrelational databases in the world. If you’re looking to build out your skill set, your best move may be to dive right in. In this approachable, hands-on course, instructor John Cokos leads intermediate to advanced users through a series of practical coding challenges to help you get the most out of MongoDB. Learn how to query or find using aggregation pipelines to process documents, sort and group records, shape your output, and create calculated fields. Along the way, you’ll build out your toolbox with the necessary skills to work with multiple documents and relationships.
Skills covered
MongoDBAdvancedDatabase DevelopmentDatabase ManagementOpen SourceSoftware Development
Concepts
0. Introduction
- 01 - Introduction, goals, and prerequisites
- 02 - Tooling - mongosh and Compass install, configure, basic use
1. CRUD - Query or Find with Pipelines
- 03 - Find - Using aggregation pipeline to process documents
- 04 - Find - Aggregation with $group and $sort
- 05 - Find - Use $project to shape your output
- 06 - Find - Create calculated fields
- 07 - Aggregate - Custom logic with an accumulator
- 08 - Aggregate - Custom logic with a function
2. Working with Multiple Documents and Relationships
- 09 - Find - Looking up a referenced document, nesting
- 10 - Find - Referenced data sets, iterating with a cursor
- 11 - Find - $lookup() to join collections
- 12 - Using $mergeObjects
Conclusion
- 13 - Next steps