Lua API

Traversing Relationships

Traversing - Relationships

Get the Relationships for a Node

Relationship[] NodeGetRelationships(Node node)

Get the Relationships of a Direction for a Node

Relationship[] NodeGetRelationships(Node node, Direction direction)

Get the Relationships of a Direction and Type for a Node

Relationship[] NodeGetRelationships(Node node, Direction direction, String rel_type)

Get the Relationships of a Direction and Types for a Node

Relationship[] NodeGetRelationships(Node node, Direction direction, String[] rel_types)

Get the Relationships of a Type for a Node

Relationship[] NodeGetRelationships(Node node, String rel_type)

Get the Relationships of Types for a Node

Relationship[] NodeGetRelationships(Node node, Direction direction, String[] rel_types)

Get the Relationships for a Node

Relationship[] NodeGetRelationships(String type, String key)

Get the Relationships of a Direction for a Node

Relationship[] NodeGetRelationships(String type, String key, Direction direction)

Get the Relationships of a Direction and Type for a Node

Relationship[] NodeGetRelationships(String type, String key, Direction direction, String rel_type)

Get the Relationships of a Direction and Types for a Node

Relationship[] NodeGetRelationships(String type, String key, Direction direction, String[] rel_types)

Get the Relationships of a Type for a Node

Relationship[] NodeGetRelationships(String type, String key, String rel_type)

Get the Relationships of Types for a Node

Relationship[] NodeGetRelationships(String type, String key, Direction direction, String[] rel_types)

Get the Relationships for a Node by Id

Relationship[] NodeGetRelationships(Number id)

Get the Relationships of a Direction for a Node by Id

Relationship[] NodeGetRelationships(Number id, Direction direction)

Get the Relationships of a Direction and Type for a Node by Id

Relationship[] NodeGetRelationships(Number id, Direction direction, String rel_type)

Get the Relationships of a Direction and Types for a Node by Id

Relationship[] NodeGetRelationships(Number id, Direction direction, String[] rel_types)

Get the Relationships of a Type for a Node by Id

Relationship[] NodeGetRelationships(Number id, String rel_type)

Get the Relationships of Types for a Node by Id

Relationship[] NodeGetRelationships(Number id, String[] rel_types)