Arangoex v0.0.9 Arangoex.Graph.Edges

This module is for reading inbound and/or outbound edges from a vertex in a graph.

Summary

Functions

Returns an array of edges in the collection identified by collection_name to or from the vertex identified by vertex_handle. If the direction is not specified, "any" edges are returned

Functions

list(collection_name, vertex_handle, opts \\ [])

Returns an array of edges in the collection identified by collection_name to or from the vertex identified by vertex_handle. If the direction is not specified, "any" edges are returned.

Endpoint

GET /_api/edges/{collection-id}

Options

  • :direction - Filters the resulting edges by the direction to or from the given vertex. It may be one of "in", "out", or "any".

Any of the “Shared Options” from the Arangoex module documentation are also accepted.

Examples

{:ok, resp} = Arangoex.Graph.Edges.list("my_edges", "my_vertex/12345", direction: "in")