Lua API

Traversing Relationships

Traversing - Relationships

Get the Relationships for a Node

Relationship[] NodeGetRelationships(String type, String key)

Get the Relationships of a Direction for a Node

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

Get the Relationships of a Direction and Type for a Node

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

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

Relationship[] NodeGetRelationshipsForDirectionForTypeId(String type, String key, Direction direction, Number type_id)

Get the Relationships of a Direction and Types for a Node

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

Get the Relationships of a Type for a Node

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

Get the Relationships of a Type Id for a Node

Relationship[] NodeGetRelationshipsForDirectionForTypeId(String type, String key, Direction direction, Number type_id)

Get the Relationships of Types for a Node

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

Get the Relationships for a Node by Id

Relationship[] NodeGetRelationshipsById(Number id)

Get the Relationships of a Direction for a Node by Id

Relationship[] NodeGetRelationshipsByIdForDirection(Number id, Direction direction)

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

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

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

Relationship[] NodeGetRelationshipsByIdForDirectionForTypeId(Number id, Direction direction, Number type_id)

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

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

Get the Relationships of a Type for a Node by Id

Relationship[] NodeGetRelationshipsByIdForType(Number id, String rel_type)

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

Relationship[] NodeGetRelationshipsByIdForDirectionForTypeId(Number id, Direction direction)

Get the Relationships of Types for a Node by Id

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