In this video, we are going to populate the real comments instead of the IDs.
So let's make a request to find or post.
And this is the end point.
When I hit send.
Let's have a look.
You can see that this post has two comments.
Which is it?
So let's go ahead and populate the real comment.
So let's get into the controllers of post, which is this Let's locate finding all post, which is this.
So here we can add populate on that and the field is called comment.
I also want to populate when a user find a single post.
So this one too, I'm going to change with that and that is it.
So if I hit send again, let's have a look.
You can see instead of IEDs.
Now we have the rare comment.
And if I find a single post, I'll be able to see all the comments for this post.
It doesn't exist, meaning that it has been deleted.
So let me find the first one for CSIS and let me pass in the ID and hit send.
And you can see that you go back a single post.
And when that we have the comment, let's also populate the comments on the user profile.
So controllers for users and let's look at the profile, which is this and let's also populate the comment.
We can change as many populate as you want going to be as comments.
So let's go ahead and make a request to find this profile of the user and let's have a look.
You can see this user has created these posts.
And let's look at the comments also.
And this user has also created a comment.
So that is it about the populate the next video, let's create a controller to delete a comment.