Skip to content

Commit 91dd830

Browse files
committed
Improving pagination documentation
1 parent 0880b3a commit 91dd830

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/pagination.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ PHP arrays, Doctrine and [TDBM](https://thecodingmachine.github.io/tdbm/doc/limi
1414
<div class="alert alert-warning">If you are a Laravel user, Eloquent does not come with a Porpaginas
1515
iterator. However, <a href="laravel-package-advanced">the GraphQLite Laravel bundle comes with its own pagination system</a>.</div>
1616

17+
## Installation
18+
19+
You will need to install the [Porpaginas](https://github.com/beberlei/porpaginas) library to benefit from this feature.
20+
21+
```bash
22+
$ composer require beberlei/porpaginas
23+
```
24+
1725
## Usage
1826

1927
In your query, simply return a class that implements `Porpaginas\Result`:

website/versioned_docs/version-4.0/pagination.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ PHP arrays, Doctrine and [TDBM](https://thecodingmachine.github.io/tdbm/doc/limi
1515
<div class="alert alert-warning">If you are a Laravel user, Eloquent does not come with a Porpaginas
1616
iterator. However, the GraphQLite Laravel bundle <a href="laravel-package-advanced.md">comes with its own pagination system</a>.</div>
1717

18+
## Installation
19+
20+
You will need to install the [Porpaginas](https://github.com/beberlei/porpaginas) library to benefit from this feature.
21+
22+
```bash
23+
$ composer require beberlei/porpaginas
24+
```
25+
1826
## Usage
1927

2028
In your query, simply return a class that implements `Porpaginas\Result`:

0 commit comments

Comments
 (0)