Lua API

Node

Node

A Node is returned from requests such as NodeGet, NodeGetById but can also be returned as a list from requests such as NodesGet, NodeGetNeighbors, etc.

getId

Retrieve the id of the Node

Node.getId

Example:


node = NodeGet("Node", "Max")
node.getId
            

getTypeId

Retrieve the type id of the Node

Node.getTypeId

Example:


node = NodeGet("Node", "Max")
node.getTypeId
            

getType

Retrieve the type of the Node

Node.getType

Example:


node = NodeGet("Node", "Max")
node.getType
            

getKey

Retrieve the key of the Node

Node.getKey

Example:


node = NodeGet("Node", "Max")
node.getKey
            

getProperties

Retrieve the properties of the Node

Node.getProperties

Example:


node = NodeGet("Node", "Max")
node.getProperties
            

getProperty

Retrieve a property of the Node

Node.getProperty

Example:


node = NodeGet("Node", "Max")
node.getProperty("name")