Search⌘ K

Graph Service API

Explore how to define a common graph service API in Elixir using OTP behaviors. Learn to create standardized CRUD operations and query interfaces to interact with various graph database services efficiently.

Let’s look at querying graphs.

Common interface for different graph services

The graph databases we’ll look at have web interfaces and support CRUDCreate, Read, Update, and Delete operations on graphs in their own graph stores. They all have their own APIs and data representations, which can be a bit of a burden when switching between these services.

Let’s define a common interface for these graph services. We can make use of the OTP behavior pattern to define a set of callbacks that will be ...