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 ...
Get Exploring Graphs with Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.