From the course: Full Stack Web Development with Flask
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Creating the MongoDB aggregation pipeline - Flask Tutorial
From the course: Full Stack Web Development with Flask
Creating the MongoDB aggregation pipeline
- [Instructor] Creating the MongoDB Aggregation Pipeline. In this video, we're going to explore the MongoDB Aggregation framework using the Compass interface. And then we're going to create aggregation pipeline to process data in three stages. The three stages we'll be lookin' at are the $loopup, $match, and $unwind. So as you can see, as it says stage pipeline here. So the first stage here is going to be a $lookup. A $lookup from the table, which is the target, which is going to be enrollment table. And then the local field that match that table in our ID is called the user_id from the user collection, right, I shouldn't say table, should be collection. And inside the enrollment also has a user_id field. And that's the one that I matched with. Okay? And then the as here, this is a string to, it's like a virtual collection. And that's the words, if you don't put it, just say, like that, but if you click on it, it will…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Installation and configuration9m 16s
-
(Locked)
Creating the login and registration pages7m 10s
-
(Locked)
Updating the login route and login template9m 54s
-
(Locked)
Flashing messages9m 59s
-
(Locked)
Displaying form validation error messages4m 36s
-
(Locked)
Processing form data and updating the database6m 45s
-
(Locked)
Updating login route to interact with database6m 46s
-
(Locked)
Updating registration route to interact with database8m 20s
-
(Locked)
Creating the courses page6m 2s
-
(Locked)
Creating the enrollment page8m 58s
-
(Locked)
Updating the enrollment template4m 13s
-
(Locked)
Creating the MongoDB aggregation pipeline9m 56s
-
(Locked)
Adding the aggregation pipeline to application5m 9s
-
(Locked)
Creating sessions and authentication5m 23s
-
(Locked)
Setting up the session for logout and enrollment routes3m 12s
-
(Locked)
Updating the navigation and testing the session3m 57s
-
(Locked)
Adding the welcome message to layout3m 24s
-
-