diegohaz / diegohaz/querymen

Using custom schema causes wrong pagination

Open
#65 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
134
Forks
34
PR merge metrics
No merged PRs in 30d

Description

If a schema (either empty) is attached to routing,
and I set page and limit parameters in query, "skip" is calculated based on default "limit" value = 30 - not a value from query:

![Bug](https://i.imgur.com/hkyvXTu.png)

Skip should be 20 not 30.
In other words, if schema is attached 'skip' is calculated always based on default value.
With no schema attached - everything works fine.

I believe this is duplicate of https://github.com/diegohaz/querymen/issues/50
But that problem is still present.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.