Welcome to the last section under MongoDB and Mongoose, and that is data modeling.
What is it and why should we care about it?
If you want to become a full stock developer or a back end developer, then this is the section that
we need to pay attention to because any back end application or Fullstack application is all about data
and understanding.
This topic is not all that easy, so I advise you to take some notes as you move on.
Like always, I'm going to make it pretty simple by using some diagram to show you the logic first.
Then we get back to code to demonstrate all what you've learned.
So what is data modeling?
Let's understand that data modeling is the process of transforming real world ideas into data.
What does it mean?
It simply means that before you even start to develop a back end application, the first step you need
to take into consideration is about data modeling.
Because any application start with the idea.
For example, if you are a developer and I'm a client, I come to you that place.
I want this particular application and this is how I want it to be.
So as a developer, you need to listen to your client how he wants the application to be, and you are
going to transform those ideas into code to be more precise into data.
For example, if I say that I want good management system and I want a situation whereby students can
register, come pay school fees and many more, you are going to take this idea into data, and that
is what we call data modeling.
Based on my experience, this is the most difficult part as a back end developer because it's not all
that easy to transform the client idea into reality.
So as you move on this, what I'm going to show you the steps involved.
So let's get going.
And after that, we need to learn what is called database relationship.
Well, database relationship is part of the data modeling.
It simply means that how individual data are being related.
Let's say that we have a block application and we have posts and users.
If you want to know which user created a certain post or a post belongs to which user, and this is
what we call database relationship.
And for this one too, I'm going to take you through step by step.
Well, so what is it?
Technically, it refers to the relationship between different collections of data in MongoDB database.
So like I said, there are database relationships simply means that how individual collections are related
together.
So I will show you more as you move on.
So in a nutshell, data modeling is a process of transforming the ideas into database, the first step,
and then to collection second step and to how the data are being collected together.
And this is what we call data modeling in Mongoose.
The objective for this section lies in this particular sentence here.
So as we move on, I'm going to take you through how we are going to model data.
In the next video.
I will show you the process involved when it comes to data modeling.