ditto / live.ditto / DittoPendingCursorOperation / limit

limit

var limit: Int fun limit(limit: Int): DittoPendingCursorOperation

Limit the number of documents that get returned when querying a collection for matching documents.

Parameters

limit - the maximum number of documents that will be returned.

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.