I would like to create a json path for every node in the tree, The goal of every path is to store all the ancestors of the current node.
I've already found a solution to solve this matter in this question: Nested leaf node.
However, it only works for leaf nodes, and I need a query for every single node in the tree. Looking for a solution in pgsql.
I did try to solve it on my own by the query I found mentioned above, and could not figure it out.
Glad for any hel