Skip to content

WriteableTable.add()

David Fahlander edited this page Apr 10, 2014 · 7 revisions

Adds an object to the object store.

Syntax

table.add(item, [key])

Parameters

item Object to add
key Primary key optional

Return Value

Promise

Remarks

Add given object to store. If an object with the same primary already exist, the opration will fail and returned promise catch() callback will be called with the error object.

See Also

WriteableTable.put()

Clone this wiki locally