-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Total number of job postings #24
Comments
Could you figure this out? I am trying to do the same thing. |
Hello! Thanks for your question. We do not provide the total number of pages or postings. The limit only allows you to set the total per page. If you have 95 published postings and you set the limit to 10, you'll have ten pages of postings:
You know you've reached the last page when your request returns fewer results than the provided limit. Hope this helps! |
@rkstedman That works until your last skip of results is the same size as the limit. Which means you have to do an API call only to return no results. The alternative implies you have to do a separate API call without limit & skip to calculate the number of results, and then factor your pagination that way. Ideally, the API postings results should return the total if possible. Feature request? |
@rahuln93 , I have a working Code Pen with filters and pagination: https://codepen.io/achimmer/pen/XgLoPM I'm going to refactor my pagination logic (since I don't know the total results using limit & skip) by making a separate API call (3 http requests every time I render job postings). That way I save the user from having to paginate all the way to the end and then serve no results. But this is forthcoming. |
Having the total number of records available in the header of the response would be extremely helpful. |
I'm trying to implement pagination with job postings. How do I get the total number of job postings while using the limit parameter?
The text was updated successfully, but these errors were encountered: