Skip to main content
Module

x/darango/mod.ts>Graph

An ArangoDB driver for Deno.
Latest
class Graph
import { Graph } from "https://deno.land/x/darango@0.1.6/mod.ts";

Represents an ArangoDB Graph.

Constructors

new
Graph(ax: axiod, name: string)

Methods

get(): Promise<GraphDefinition>

Get the definition of this graph.

shortestPath<T>(
startVertex: string,
endVertex: string,
direction: "OUTBOUND" | "INBOUND" | "ANY",
): ArangoCursor<DocumentData<T>>

Find the shortest path between a start and end vertex node.

traversal<T>(
startVertex: string,
direction: "OUTBOUND" | "INBOUND" | "ANY",
options?: GraphTraversalOptions<T>,
): ArangoCursor<DocumentData<T>>

Traverse the graph.

vertexCollections(): Promise<Collection<{ [key: string]: any; }>[]>

List all vertex collections.