Skip to main content

CrudTransaction

A batch of client-side changes.

Extends

Constructors

new CrudTransaction()

new CrudTransaction(
crud,
complete,
transactionId?): CrudTransaction

Parameters

ParameterTypeDescription
crudCrudEntry[]List of client-side changes.
complete(checkpoint?) => Promise<void>Call to remove the changes from the local queue, once successfully uploaded.
transactionId?numberIf null, this contains a list of changes recorded without an explicit transaction associated.

Returns

CrudTransaction

Overrides

CrudBatch.constructor

Properties

PropertyTypeDescriptionOverridesInherited from
complete(checkpoint?: string) => Promise<void>Call to remove the changes from the local queue, once successfully uploaded.CrudBatch.completeCrudBatch.complete
crudCrudEntry[]List of client-side changes.CrudBatch.crudCrudBatch.crud
haveMorebooleantrue if there are more changes in the local queue.CrudBatch.haveMoreCrudBatch.haveMore
transactionId?numberIf null, this contains a list of changes recorded without an explicit transaction associated.--