Lua API

Relationships

Relationships

Add an empty Relationship

Number RelationshipAdd(String rel_type, String type1, String key1, String type2, String key2)

Add an empty Relationship by Node Ids

Number Relationship(String rel_type, Number id1, Number id1)

Add a Relationship with properties

Number RelationshipAdd(String rel_type, String type1, String key1, String type2, String key2, String json)

Add a Relationship with properties By Node Ids

Number RelationshipAdd(String rel_type, Number id1, Number id1, String json)

Get a Relationship

Relationship RelationshipGet(Number id)

Return a list of Relationships by their Relationship Ids

Relationship[] RelationshipsGet(Number[] ids)

Remove a Relationship

Boolean RelationshipRemove(Number id)

Get the Type of a Relationship

String RelationshipGetType(Number id)

Get the Starting Node Id of a Relationship

Number RelationshipGetStartingNodeId(Number id)

Get the Ending Node Id of a Relationship

Number RelationshipGetEndingNodeId(Number id)