Node objects represent nodes in neo4j. They inherit from the Base class.
- createRelationshipFrom
- createRelationshipTo
- deleteProperties
- getAllRelationships
- getIncomingRelationships
- getOutgoingRelationships
- index
- refreshProperties
- removeFromIndex
- replaceAllProperties
- setProperties
- setProperty
- valueOf
The Node
constructor is internal. Objects are instantiated by various library functions, for example Graph.getNode.
Inherited from Base.data
Inherited from Base.id
Node.createRelationshipFrom ( [Batch,] Node node, String type, Function callback )
Node.createRelationshipFrom ( [Batch,] Node node, String type, Object data, Function callback )
Node.createRelationshipFrom ( [Batch,] String|Number nodeId, String type, Function callback )
Node.createRelationshipFrom ( [Batch,] String|Number nodeId, String type, Object data, Function callback )
Creates a new relationship from the node represented by node
or nodeId
arguments to 'this' node.
node
- The
Node
from which the relationship will be created to 'this'Node
.
nodeId
- Instead of supplying a
Node
object, a node ID can be provided as a string or a number.
type
- The relationship type.
data
- Allows properties to be set on the relationship at the time of creation.
callback
- Signature:
Function (error, relationship)
relationship
A Relationship object.
Identical to createRelationshipFrom except that the relationship direction is reversed.
Inherited from Base.deleteProperties
Node.getAllRelationships ( [Batch,] Function callback )
Node.getAllRelationships ( [Batch,] String type, Function callback )
Node.getAllRelationships ( [Batch,] Array types, Function callback )
DESCRIPTION
type
- Limits request to only relationships of one type.
types
- An array of strings which limit the request to only relationships with types listed in
types
.
callback
- Signature:
Function (error, relationships)
relationships
An array of Relationship objects. If no relationships are found,relationships.length === 0
.
Identical to getAllRelationships except that only incoming relationships are requested.
Identical to getAllRelationships except that only outgoing relationships are requested.
Inherited from Base.index
Inherited from Base.refreshProperties
Inherited from Base.removeFromIndex
Inherited from Base.replaceAllProperties
Inherited from Base.setProperties
Inherited from Base.setProperty
Inherited from Base.valueOf