Relationship

Represents a relationship from a labeled property graph.

Consists of a unique identifier (within the scope of its origin graph), identifiers for the start and end nodes of that relationship, a type and a map of properties. A relationship owns its type string and property map.

Constructors

this
this(Relationship other)

Create a shallow copy of other relationship.

this
this(Value value)

Create a relationship from a Value.

this
this(mg_relationship* ptr)

Create a Relationship using the given mg_relationship pointer.

Members

Functions

endId
auto endId()

Returns the relationship end id.

id
auto id()

Returns the relationship id.

opEquals
auto opEquals(Relationship other)

Compares this relationship with other. Return: true if same, false otherwise.

properties
auto properties()

Returns the relationship properties.

ptr
auto ptr()

Return pointer to internal mg_relationship.

startId
auto startId()

Returns the relationship start id.

toHash
size_t toHash()

Return the hash code for this relationship.

toString
string toString()

Return a printable string representation of this relationship.

type
auto type()

Returns the relationship type.

Meta