Search⌘ K
AI Features

API Demo

Explore how to add and manage a default graph in Neo4j using Elixir. Learn to execute Cypher queries with simplified helper functions for clear and efficient graph database interactions.

We'll cover the following...

As a demo, we'll add our default graph to the Neo4j database.

Workflow

XML
iex> import PropertyGraph
iex> default_graph = read_graph("default.cypher")
iex> graph_create default_graph
iex> graph_info
iex> with %Bolt.Sips.Response{results: results} =
...> query!(conn(), "MATCH (n) RETURN n"), do: results

Line 1: We import the PropertyGraph module.
Line 3: We use the read_graph/1 function to read the default graph from the graph store.
Line 5: We pipe this graph into the ...