Add documentation for paginated and multi level request
This commit is contained in:
19
docs/usage/paginated.md
Normal file
19
docs/usage/paginated.md
Normal file
@@ -0,0 +1,19 @@
|
||||
Paginated request
|
||||
=================
|
||||
|
||||
```kotlin
|
||||
import fr.postgresjson.connexion.Paginated
|
||||
import fr.postgresjson.connexion.Requester
|
||||
import java.util.UUID
|
||||
|
||||
class Article(val id: UUID, val name: String)
|
||||
|
||||
val request: Requester = TODO()
|
||||
val article: Paginated<Article> = requester
|
||||
.getFunction("find_articles")
|
||||
.select(
|
||||
page = 1,
|
||||
limit = 10,
|
||||
"id" to "4a04820e-f880-4d80-b1c9-aeacccb24977"
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user