addOperation ( op: Object )

Adds an operation to this transaction

Parameters
Name Type Description
op Object

op Operation

Properties
Name Type Description
record Oject op.record Record
op String op.op Operation, must be one of ADD, DEL, UPD (add, delete, update).
model String object is passed as the record

commit ( opts: Object ) { Promise }

Commits the transaction

Parameters
Name Type Description
opts Object

opts Options