ditto-lib / live.ditto / DittoWriteTransactionPendingCursorOperation / limit

limit

var limit: Int fun limit(limit: Int): DittoWriteTransactionPendingCursorOperation

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 DittoWriteTransactionPendingCursorOperation that you can chain further function calls and then either get the matching documents immediately or get updates about them over time.