diegohaz / diegohaz/rest

Pagination question

Open
#207 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
304
PR merge metrics
No merged PRs in 30d

Description

Hi Diego

I have a collection with +5000 documents and i´m wondering how pagination works in your API generator. I read the documentation but I´m still wondering if your API calculates automatically the number of pages depending on the count or if it has to be calculated by playing with limit and page parameters. I´m getting the "cursor timeout or killed" error in MongoDB when querying big amounts of documents. I will appreciate your comments and recommendations to handle this type of issues.

Best regards.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no file, test, or entry point. Start by locating the pagination documentation and reproducing the query with a collection of more than 5,000 MongoDB documents. Done means clearly documenting how page and limit work, whether page counts are calculated automatically, and how to avoid the reported cursor timeout.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, mongodb, node.js
Domain
api, backend, databases
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.