ditto / live.ditto / DittoWriteTransaction / scoped

scoped

fun scoped(collectionName: String): DittoScopedWriteTransaction

Creates a DittoScopedWriteTransaction object that will ensure that operations called on it are all in the context of the collection name provided to this function. You can create many DittoScopedWriteTransaction objects per DittoWriteTransaction object.

Parameters

collectionName - : The name of the collection that the write transaction object should be scoped to.

Return
A DittoScopedWriteTransaction that is scoped to the specified collection.