Set up a Graph Service
Learn how to set up a graph service API for the TinkerGraph project for hassle-free querying.
We'll cover the following
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 certain brevity because we are particularly focused on querying graphs interactively with IEx.
Graph API
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 simply defined as:
Get hands-on with 1400+ tech skills courses.