janez89 / mongoose-materialized

mongoose materialized plugin
59 stars 22 forks source link

Skip/Limit on getDescendants #2

Closed btmdave closed 10 years ago

btmdave commented 10 years ago

It seems like skip/limit for getDescendants doesn't work. Any idea if this is something that could be added in or is there another method that will give this functionality? Thanks!

janez89 commented 10 years ago

Hy. Yes, it was not implemented. I added this feature for getDescendants, getChildren, getAncestors, getSiblings. Use "npm update".

usage: element.getDescendants({ limit: 10, skip: 0 }, callback);