Skip to content
  1. API
  2. ObjectPropertyWatcher

ObjectPropertyWatcher ​

Retrieved from ogma.schema.watchNodeProperties() or ogma.schema.watchEdgeProperties().

objectPropertyWatcher.destroy() ​

Stops the watcher from being updated.

objectPropertyWatcher.getPath() ​

Returns the path of the data property being watched

Returns

  • Array<string>

objectPropertyWatcher.getProperties() ​

Returns the names of the sub-property of the watched property.

Returns

  • Array<string>

objectPropertyWatcher.getPropertyInfo(name) ​

Retrieve some information on the specified sub-property.

Arguments

  • name string

Returns

objectPropertyWatcher.onPropertyAdded(handler) ​

Triggers the specified function when a new sub-property is added (at least one node has a value for it).

Arguments

Returns

objectPropertyWatcher.onPropertyRemoved(handler) ​

Triggers the specified function when a new sub-property is removed (no node has a value for it).

Arguments

Returns

objectPropertyWatcher.onPropertyUpdated(handler) ​

Triggers when a sub-property of the watched property is updated.

Arguments

Returns