janez89 / mongoose-materialized

mongoose materialized plugin
59 stars 22 forks source link

AppendChild doesn't update the child's children. #4

Closed btmdave closed 10 years ago

btmdave commented 10 years ago

Hello,

When using Cat.AppendChild(parentId, Doc). This works to update the direct relationship between Doc and the parentId, however if Doc has children, those children seem to get lost. Their path isn't updated.

Is there a better way for 'moving' a document to new relationship and maintaining all the child relationships?

Thanks!

janez89 commented 10 years ago

Hello, Sorry for the late answer. I do not fully understand. Can you write the code examples?

btmdave commented 10 years ago

Sorry, I meant to close this out. Turned out to be a different issue.