lektor-website/content/docs/api/db/query/offset/contents.lr

23 lines
468 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
title: offset
---
summary: Skips a certain number of records.
---
type: method
---
signature: offset
---
body:
The offset method can be used to skip a certain number of items. Typically
this is not useful as pagination comes built-in, but it can be helpful in
some manual scenarios when working with data from the `shell`.
This is typically combined with [limit :ref](../limit/).
## Example
```pycon
>>> pad.query('/projects').limit(5).offset(10).all()
[...]
```