ditto / live.ditto / DittoPendingCursorOperation / offset

offset

var offset: Int fun offset(offset: Int): DittoPendingCursorOperation

Offset the resulting set of matching documents. This is useful if you aren't interested in the first N matching documents for one reason or another. For example, you might already have queried the collection and obtained the first 20 matching documents and so you might want to run the same query as you did previously but ignore the first 20 matching documents, and that is where you would use offset.

Parameters

offset - the number of matching documents that you want the eventual resulting set of matching documents to be offset by (and thus not include).

Return
a DittoPendingCursorOperation that you can chain further function calls and then either get the matching documents immediately or get updates about them over time.