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.
答案 0 :(得分:2)
您可以使用_graph
功能加载图表:
graph = graph_module._graph("myGraph");
代码在arangosh和Foxx中的作用相同。
文档中也对此进行了描述: https://docs.arangodb.com/3.3/Manual/Graphs/GeneralGraphs/Management.html#load-a-graph