ex_cypher v0.3.0 ExCypher.Graph.Relationship
Builds relationships using cypher syntax
Link to this section Summary
Functions
Builds associations between nodes and relationships
Returns the Cypher's syntax for a relationship
Link to this section Functions
Link to this function
assoc(assoc_type, arg)
assoc( direction :: assoc_direction(), {from :: node_or_relationship(), to :: node_or_relationship()} ) :: String.t()
Builds associations between nodes and relationships
Returns the Cypher's syntax for a relationship:
Usage:
iex> rel()
"[]"
iex> rel(%{year: 1980})
"[{"year": 1980}]"
iex> rel([:WORKS_IN])
"[:WORKS_IN]"
iex> rel(:r, %{year: 1980})
"[r {"year": 1980}]"
iex> rel([:Rel], %{year: 1980})
"[:Rel {"year": 1980}]"
iex> rel(:r, [:Rel], %{year: 1980})
"[r:Rel {"year": 1980}]"
Link to this function
rel(labels, props)
Link to this function
rel(name, labels \\ [], props \\ %{})
Link to this function