ex_cypher v0.2.0 ExCypher.Node

CYPHER node statements

It can be used in order to build more complex queries involving your graph nodes.

Link to this section Summary

Functions

Returns the CYPHER's syntax to a node element.

Link to this section Functions

Returns the CYPHER's syntax to a node element.

Example:

  • Building an empty node: iex> node() "()"

  • Building an node with only props: iex> node(%{name: "bob"}) "({"name": "bob"})"

  • Building a labeled node: iex> node(:a, [:Node]) "(a:Node)"

  • Building a more complex node (with props and labels): iex> node(:a, [:Node], %{name: "mark", age: 27}) "(a:Node {"name": "mark", "age": 27)"

Link to this function

node(props)

node(props :: map()) :: String.t()
Link to this function

node(name, labels \\ [], props \\ %{})

node(name :: String.t(), labels :: list(), props :: map()) :: String.t()