Skip to content

WriteableTable.update()

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

Adds new or updates existing object in the object store.

Syntax

table.put(item, [key])

Parameters

item Object to add
key Primary key optional

Return Value

Promise

Remarks

If an object with the same primary already exist, it will be replaced with given object. If it does not exist, it will be added.

See Also

WriteableTable.update()

WriteableTable.add()

WriteableTable.modify()

Clone this wiki locally