AshNeo4j.Cypher (AshNeo4j v0.1.0)

View Source

Ash Neo4j cypher functions

Summary

Functions

Converts a map to a cypher properties string. The map is converted to a string in the format {key1: value1, key2: value2}. This is used to create nodes in Neo4j.

Runs some cypher,

Functions

cypher_properties(map)

Converts a map to a cypher properties string. The map is converted to a string in the format {key1: value1, key2: value2}. This is used to create nodes in Neo4j.

Examples

iex> AshNeo4j.Cypher.cypher_properties(%{name: "Bill Nighy", born: 1949, bafta_winner: true})
"{name: 'Bill Nighy', born: 1949, bafta_winner: true}"

run_cypher(cypher)

Runs some cypher,

Examples

iex> cypher = "CREATE (n:Actor {name: 'Bill Nighy', born: 1949, bafta_winner: true}) RETURN n"
iex> {result, _} = run_cypher(cypher)
iex> result
:ok