Skip to Main Content
Exploring Graphs with Elixir
book

Exploring Graphs with Elixir

by Tony Hammond
November 2022
Intermediate to advanced content levelIntermediate to advanced
294 pages
5h 58m
English
Pragmatic Bookshelf
Content preview from Exploring Graphs with Elixir

Trying Out the Bolt Driver

Before we get down to the nitty-gritty of querying graphs, let’s look at some raw Bolt.Sips responses to gain some familiarity with how graph data is shipped across our comms channel—the Bolt connection.

Let’s first take a quick peek 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{}
 %Bolt.Sips.Response{
  bookmark: nil,
  fields: nil,
  notifications: [],
  plan: nil,
  profile: nil,
  records: [],
» results: [],
» stats: [],
  type: nil
 }

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

We’ll keep things simple ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concurrent Data Processing in Elixir

Concurrent Data Processing in Elixir

Svilen Gospodinov

Publisher Resources

ISBN: 9798888650059Errata Page