I’m storing basic hierarchical game trees in ArangoDB as graphs. Each game tree has a start node, and each node (including the start node) 2-5 edges (actions). I have 2 collections, nodes for vertices and actions for edges.
I’m using the Node JS SDK and I’m trying to find the best way to query all start nodes? Should I add an isRoot property to nodes and query the nodes collection using that? Or should I query all nodes doing a filter using the actions collection to find nodes without inbound edges? Or a separate collection of start nodes?