Learn about creating a summary report with counts, calculating average prices, and moving calculated data to another collection.
- [Narrator] So far the queries we've run…have been pretty straight forward.…Find specific documents and return them,…in their entirety, or return only certain fields.…However, in the real world, you frequently need to…perform some aggregation on the results,…to perform calculations on fields,…and provide sums or averages along with other operations.…This is similar to the group bi-functionality found in SQL…and provides you with the ability to retrieve data…in the format most useful for you.…So let's take a look at a basic find operation…and then we can look at what we can do using aggregation.…
D-B, tours, count,…tour package,…Cycle California.…Okay so, we've got the count for Cycle California,…but if we wanted to get the counts for each of the packages…we'd have to make a call for each one of the packages…or find them all and do calculation on the client's side.…Aggregation makes it possible to get this…kind of information in, well, an aggregated form.…
So let's find out how many tours…are in each package with a single call.…
- Installing MongoDB for Windows and OS X
- Why Mongo?
- Document-oriented data
- Exploring the Mongo shell
- Importing data into the database
- Building an application in Node.js
- Tuning Mongo queries
- Replication and sharding
Skill Level Intermediate
MEAN Stack and MongoDB: Development Techniqueswith Alexander Zanfir1h 48m Intermediate
Node.js: Build Your First Microservice (2016)with Daniel Khan2h 9m Intermediate
1. Understand MongoDB
2. Explore the System
3. Build an Application in Node
Node MongoDB setup4m 59s
4. Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.