limit

fun limit(limit: Int): DittoWriteTransactionPendingCursorOperation

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

Return

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

Parameters

limit

the maximum number of documents that will be returned.


var limit: Int