1

I have created a graph in ArangoDB. It is possible to access the graph from Foxx?

I can create graph in following way:

var graph_module = require("@arangodb/general-graph");
var graph = graph_module._create("myGraph");

But there is not a method to load graph from ArangoDB to Foxx.

Kamil
  • 49
  • 1
  • 5

1 Answers1

2

You can load the graph using the _graph function:

graph = graph_module._graph("myGraph");

The code works the same in arangosh and in Foxx.

It's also described in the documentation: https://docs.arangodb.com/3.3/Manual/Graphs/GeneralGraphs/Management.html#load-a-graph

Tobias Gödderz
  • 321
  • 1
  • 2