When creating graphs for viewing in the ArangoDB Web Interface, I am having some issues with labels for Vertices and Edges:
I can only set Vertex/Edge attributes to simple keys. I cannot get deeper object references working.
e.g. a vertex label attribute ofname
is valid, butinfo.firstName
orinfo["firstName"]
are not, even though the value is on the vertex. The graph displaysATTR NOT SET
if I use object referencesWhen programmatically creating a Graph, I don't know how to set:
- Vertices labels
- Vertices Coloring attributes
- Edge Labels
When creating a graph with Node.js and the arangojs npm package, I use the graph.create
command, for example:
var graph = db.graph('myGraph');
graph.create({
edgeDefinitions: [
{
collection: 'myEdges',
from: [
'myNodes'
],
to: [
'myNodes'
]
}
]
})
Is there a way to fully configure the graph for proper formatting in the ArangoDB Web Interface? I can't seem to find any other function in the libraries that would let me do this.
I destroy and recreate graphs all the time and it would be great to fully create a configured graph, referencing objects within the vertex (and edges) for labels.
Thanks