Skip to content

Commit

Permalink
Update README.md: fix typo (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
redbar0n authored Jan 17, 2024
1 parent 1f7650a commit 599e4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This library provides a GQL directive to more easily implement pagination based

## What / why?

Cursor-based pagination, the style implemented by the Relay specific, involves wrapping a dataset in a `connection` object which presents your dataset items as a collection of `edges`. When making your query you provide a `first` (page size) value and an optional `after` value. `first` sets the number of items to return and `after` sets the start point for item selection. For example, given 100 records with sequential IDs, your initial query could include a `first` value of 10 and the second query would include 10 as the `after` value (the `id` of the last item on the first page).
Cursor-based pagination, the style implemented by Relay specifically, involves wrapping a dataset in a `connection` object which presents your dataset items as a collection of `edges`. When making your query you provide a `first` (page size) value and an optional `after` value. `first` sets the number of items to return and `after` sets the start point for item selection. For example, given 100 records with sequential IDs, your initial query could include a `first` value of 10 and the second query would include 10 as the `after` value (the `id` of the last item on the first page).

To support this pattern in GQL we need to

Expand Down

0 comments on commit 599e4ef

Please sign in to comment.