Current section

Files

Jump to
arangoex lib arangoex graph traversal.ex
Raw

lib/arangoex/graph/traversal.ex

defmodule Arangoex.Graph.Traversal do
@moduledoc false
alias Arangoex.JSON
use Arangoex, base_url: ["/", "_api", "/", "traversal"]
# POST /_api/traversal
# Perform a graph traversal starting from a single vertex.
def traverse(%{} = traversal, opts \\ []) do
{:ok, body} = JSON.encode(traversal)
[]
|> build_url(opts)
|> Arangoex.post(body, opts)
end
end