Search⌘ K
AI Features

First Queries with Cypher

Explore how to execute basic Cypher queries on a Neo4j property graph to inspect nodes, relationships, paths, and schemas. This lesson helps you understand query structure and practice retrieving graph data using query files.

We'll cover the following...

Queries

Let’s execute the following Cypher queries on our default graph:

XML
iex> graph_service PropertyGraph
iex> graph_info
iex> list_queries_dir("lib") |> Enum.each(
...> fn f -> IO.puts "* " <> f; read_query("lib/" <> f).data |> IO.puts end
...> )
iex> read_query("lib/node1.cypher").data |> cypher!

Line 1: We switch our context to use the ...