Data
Class defined in model/data/Data.js#15 inherits from
new Data()
Constructor defined in model/data/Data.js#21

Check if this storage contains a node with given id.

Returns
bool

true if a node with id exists, false otherwise.

Get a node or value via path.

Parameters
pathString|String[]

node id or path to property.

Returns
Node|Object|Primitive

a Node instance, a value or undefined if not found.

Get the internal storage for nodes.

Returns

The internal node storage.

Create a node from the given data.

Returns
Node

The created node.

Delete the node with given id.

Parameters
nodeIdString
Returns
Node

The deleted node.

Set a property to a new value.

Parameters
propertyArray

path

newValueObject
Returns
Node

The deleted node.

Update a property incrementally.

Parameters
propertyArray

path

diffObject
Returns
any

The value before applying the update.

Clear nodes.

Add a node index.

Parameters
nameString
indexNodeIndex

Get the node index with given name.

Parameters
nameString
Returns
NodeIndex

The node index.

Update a node index by providing of change object.

Parameters
changeObject

Stops indexing process, all changes will be collected in indexing queue.

Update all index changes from indexing queue.