Add the "skip" parameter to the find collection operation in Payload API
#16249
MurzNN
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For now, Payload API's
findoperation misses theskipparameter, which is usually present in most of the database query functions and other APIs.Instead of it, there is a
pageparameter that implements almost the same feature, but it works only in conjunction with thelimitparameter.This limitation makes it impossible to make queries that just skip a specific number of items in the query, but these cases are not rare, here is an example of one of such cases: #16196
From the technical side, it's not hard to implement; the hard part is only to make them not work together, so accept this parameter only if the pagination is off.
But to improve the developer experience, let's still add the
skipparameter to thefindoperations!Beta Was this translation helpful? Give feedback.
All reactions