Search⌘ K
AI Features

Try Out the Bolt Driver

Explore how to use the Bolt.Sips driver in Elixir to run Cypher queries against Neo4j property graphs. Understand the structure of Bolt.Sips responses, including nodes, relationships, and paths, and practice extracting key data fields from query results.

Let’s look at some raw Bolt.Sips responses in order to gain some familiarity with how graph data is actually shipped across our comms channel—the Bolt connection.

%Bolt.Sips.Response{} struct

Let’s take a quick look at the %Bolt.Sips.Response{} struct to get a feel for how this is structured and what kinds of data fields are supported:

iex> %Bolt.Sips.Response{}

Here’s the output we get:

%Bolt.Sips.Response{
bookmark: nil,
fields: nil,
notifications: [],
plan: nil,
profile: nil,
records: [],
results: [],
stats: [],
type: nil
}
Bolt.Sips response struct

For now, we’re going to be mainly looking at the results and stats fields, and later we’ll use the type field as a means to select ...