coryodaniel / arbor

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

Retrieve descendants up to a depth #18

Closed sntran closed 7 years ago

sntran commented 7 years ago

descendants/1 now becomes descendants/2 with an optional depth value, default to max int. The recursive tree will only retrieve nodes up to the depth specified.

This is not as exact as how @coryodaniel thought of in #6, but it works and I need this functionality now.

coryodaniel commented 7 years ago

Thanks for this!