📄️ Intro to MongoDB
The last element to our MERN stack is the MongoDB database. Let's start by looking at what is MongoDB, and how it fits into our stack.
📄️ Getting started
Here, we'll see how to create a MongoDB cluster, and how to add the sample data.
📄️ Querying data
In the "Collections" view, you can see a list of databases and collections in the left sidebar. All the collections whose name starts with sample_ are sample data collections. You can query these collections to see how the data is structured.
📄️ Querying with code
Obviously, you'll want to access the data in your collections using your programming language of choice. The syntax is very similar to what you've just seen.
📄️ 🦸 Advanced - Aggregation Pipelines
Sometimes, you need more that just a filter to query your data. You might want to perform some calculations on the data, or group the data in some way. This is where aggregation pipelines come in.
📄️ 🦸 Advanced - Get working!
Time for you to explore the aggregation pipelines. Using the aggregation builder, can you find the following?