coryodaniel / arbor

Ecto elixir adjacency list and tree traversal. Supports Ecto versions 2 and 3.
MIT License
239 stars 26 forks source link

Add 'path' function #1

Open coryodaniel opened 7 years ago

coryodaniel commented 7 years ago

Returns Ancestors + source struct

This is probably pretty easy to do now using the same CTE as ancestors but joining on id rather than parent_id...

breadcrumbs = Comment.path(comment)