-
Let's say I want to query for a particular post, all of the posts comments, all of the comments on those comments etc. Is this possible or do I need to change my schema to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 18 replies
-
There's no syntax for recursive traversal currently, although there is a plan to implement it eventually. |
Beta Was this translation helpful? Give feedback.
-
The best workaround I can think of is including a multi-link to all of its ancestors in each node. That's easy to compute (parent's ancestor set plus parent node itself) and existing nodes don't need to be updated when adding new nodes. Model:
Insertion:
|
Beta Was this translation helpful? Give feedback.
There's no syntax for recursive traversal currently, although there is a plan to implement it eventually.