Manual relationship with recursive CTE
I'm trying to implement this comment/thread (Fetching descendants in calculation) and creating a manual relationship with a recursive CTE (for a tag in a graph structure, get all parent tags). I'm able to get it done with Ecto spitting out grouped map lists. I'm getting a bit stuck figuring out how to get them as an Ash Resource in the end.
Is there anything major I'm missing?
Results look like:
Is there anything major I'm missing?
Results look like:
