So hard.
Everyone in this video, we need to do the pagination.
Well, let's open the post.
We need to build see very similar with the post over here.
Okay.
Firstly we need to sort that.
Well what we need to sort over here.
Unlike the boss we will start by updating are true.
Okay.
Will be what we call when we update the conversation.
We need to move this on top okay.
We need to move that on top over here okay.
That's the real world example.
I hope you are clear.
And if you don't agree with me, you can feel free to load a creative app, but before that, let me
add the creative art.
For a little bit of TypeScript.
Okay, we already have a time stamps.
After us, we need to move the cursor over here.
And we need a limit number.
Right here.
Let's build.
Very.
Firstly I will separate it into the battery.
Over here.
And.
I can put the records spin any right now.
Okay, let me check if we have a closure.
What we need.
We need to put a query dot.
Let me say worry dot something else.
Very similar.
Right.
Okay.
We are with the last bar.
Okay.
Let's start a new dice crusher.
And what value?
Over here.
And we need the limit.
We may limit plus one.
Okay.
And we cannot lean method over here.
And let me try to copy everything from here with us and return.
I will call this here.
We will converge as.
Much as we await us.
Over here.
Conversation.
And after that, let's return items.
Okay.
Let's buy.
And.
Only that.
And after that we need to build controllers.
Right.
So we assume.
These are controller.
We need to view the transform video.
And we need to fit a little bit over here.
The first one we will limit.
Um where are we limit.
We found.
Value.
Pies.
And crust in pie limit will be number.
Mm.
Let's say.
Mm.
Why let us.
Oh, sorry.
My bad, my bad.
We should put this in a file over here.
I don't know why.
Okay.
And after that, we need the worry.
And so we move that over here.
Okay.
And let's create a little.
Now, let's say what we need for life will be the array for sure.
And now we need to populate the vaccination or not.
Now let's say we actually don't need to populate the paginations.
The reason because if you check right here it very simple UI okay.
We all need the avatars and group name and the last message and all of that.
It can be shown over here, right?
So for that reason, in this case we just need to return.
The ID is group and group name.
Group okay.
Group name and maybe some dice over here.
And also the group media.
Group avatar over here also let me show you.
Guys this code.
Right.
Object ID.
And is group.
Group owners.
We will need group owners, right?
But maybe you can remove that.
Okay, maybe you can put that group owner right here.
Maybe we will miss that for some stuff.
I don't know right now.
So for that reason, in order to make sure right here we will populate.
The group owner over here.
Okay.
Let me say it again.
So say.
Look.
Why a little bit.
Okay, we already got an owner and we need to format it a bit.
Inside here, insert a group of.
Now we only need to type the email id, a email id name.
Email and name over here.
Okay.
And inside here we need to format it a little bit.
We don't want the nested object because it's very poor for performance.
Okay.
Firstly group.
Owner id group.
owner.
Name.
And group owner.
Email.
Okay.
It can be here for a little more.
And because this is the custom, we need to transform.
Again, after we already have a group, we need a group avatar You are right.
So let me ask you somewhere.
Is that a post schema over here?
Sorry, these are the possibility of response.
We will copy this over here.
Okay.
Let's copy that.
Follow me a little bit more and move that over here.
Transform object dot avatar.
Sorry.
Group avatar.
Over here.
Okay.
And plus I want we need half a name for sure.
And createdat and updatedat.
So insert a controller.
Now let me say okay.
Very cool.
We already have the very nice object over here right.
We have some stuff like that.
Very very cool.
So not for this one little.
And very cool.
I hope you understand this video.
I will see you in the next one.