Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/development/database/keyset_pagination.md')
-rw-r--r--doc/development/database/keyset_pagination.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/database/keyset_pagination.md b/doc/development/database/keyset_pagination.md
index 9bb44d2ed71..6b2c4f9d146 100644
--- a/doc/development/database/keyset_pagination.md
+++ b/doc/development/database/keyset_pagination.md
@@ -123,7 +123,7 @@ For the REST API, the `paginate_with_strategies` helper can be used on a relatio
In order for keyset pagination to be used, the following conditions must be met:
-1. `params[:keyset]` must return `'keyset'`
+1. `params[:pagination]` must return `'keyset'`
1. `params[:order_by]` and `params[:sort]` must both appear in the object returned by the
`supported_keyset_orderings` class method on the model. In the following example, `Thing`
supports keyset pagination when ordering by ID in either ascending or descending order.