stefankroes/ancestry

Scope like descendants, but includes self too?

h0jeZvgoxFepBQ2C opened this issue · 2 comments

Hi,

is there a way to get all descendant_ids, but with self included?

I think path and path_ids is what you want.

May want to take a look at the image in https://github.com/stefankroes/ancestry#tree-navigation - pay special attention to the yellow highlighted nodes.

Hmmm I can't remember anymore why I needed this, and subtree_ids is returning self also.. Dunno why I asked to be honest ^^ Thanks for answering though!