November 2022
Intermediate to advanced
294 pages
5h 58m
English
As we’ve done with the previous graph types, we’ll layer our own graph service API over the Gremlex API so that we can focus on the Gremlin query language itself and not be concerned with the details of any particular package API. The other reason for defining our own API is to achieve a certain brevity as we are particularly focused on querying graphs interactively with IEx.
We can set up our TinkerGraph graph service API by simply wrapping the Gremlex.Client.query/2 function. The TinkerGraph graph service functions are now defined as:
| | def graph_create(graph) do |
| | graph_delete() |
| | graph_update(graph) |
| | end |
| | |
| | def graph_delete() do |
| | Gremlex.Client.query( ... |
Read now
Unlock full access