All right, and once we're done with search functionality now, let's worry about the pagination because
I mean, it's nice that we're getting jobs and it's definitely awesome that we can filter them.
But I also would like to limit the amount of jobs that we display now.
By default, we'll set up a 10 job limit per page.
But you can always change that value later.
And one thing that I want to mention here is the fact that we'll do our pagination after we have set
up the filters.
That means that if we have, for example, 78 jobs and we have 10 jobs per page, we will display eight
pages.
But if I search for a job that has a C in it now I have 13 jobs, which means that I'll have only two
pages again.
We're displaying 10 jobs per page.
And the first thing that I want to cover in this video is the fact that in English, we can use the
limit and skip.
Now I'll still do that before the jobs.
So before, do you wait?
But effectively, it's going to look something like this where I'm going to go to Konst.
I'll set it equal right now to a hardcoded dollar.
And don't worry in the following really will make this dynamic.
And the same is going to go for skip.
So for the time being, for both of them, we'll set it up, as you know, and now we want to go with
a result.
Remember, we are still waiting right after.
Not so we're good.
And we'll go with a result.
Let's just start by taking a look at the skip one.
So let's go over here with skip and let's pass in the variable, which at the moment is zero.
So if I right now go to my postman, I'll make sure that I get all the jobs, so I'm basically all removed.
Search and status will be all job.
That will be all.
And as far as the sorting, I'm just going to go with layers.
So these are the values that I'll keep.
So I should get back all my seventy five jobs because we haven't added any values.
And now, one by one, let's set them up.
And since we have the first one out of skip, we need to understand that when it comes to skip, essentially
we're shipping jobs in response.
So at the moment, notice I have this company as the first one.
So if I'll skip one, you'll notice that in my response, I'll have 74 jobs and this one will be the
first one.
Again, it doesn't really matter how we change the values, I will start with an easy one just so we
understand how it works.
So now let me ask that to one and now with Senate.
And like I said, first of all, this will be the first job because we skipped one, skipped our first
job and our response is going to be seventy four, not when it comes to limit our signals how many jobs
we won back.
And this is the case where we will set up that limit to be done in our careers.
But you can always change it.
So if I'm going to go here with 10, which you'll notice that we'll still display the same job like
we do right now.
So our first job is not going to change unless you start changing the skip here, unless you go to zero
or maybe bigger value, but the total jobs is going to be 10.
Now it looks like I didn't say it over here or, you know, it's all right now.
So we go here with the result and the first thing will be skip.
So how many jobs we're skipping?
And the second one will be a limit.
So we need to also change this limit.
So we're going to limit and then we pass in the variable ratio.
So now everything is going to work where once I go back, once I send it notice, my first job did do
not change.
And this is very, very important.
However, the amount of jobs that are going back, that did change.
So essentially, rates are the building blocks of where we used to set up the pagination for our project.