In my ArangoDB graph, I have a subject, message threads associated with that subject, and messages inside those message threads. I would like to traverse the graph in such a way that I return the data associated with the message thread as well as the count of messages inside the message thread.
The data is structured fairly simply: I have the subject node, an edge extending to the thread node with the date and category associated, and an edge from the thread node to the message node.
I would like to return the data stored in the thread node and the count of messages attached to the thread.
I'm not sure how to do this with the for v, e, p in 1..2 outbound
syntax. Should I just do for v, e, p in outbound
with a nested graph inside it? Is that still performant?