Hacker News new | comments | show | ask | jobs | submit login

Recently I was looking into how to implement trees in MongoDB. Apparently there are several ways achieving this depending on querying needs.

Could you share your experience building trees for comments in your project Exipe?

We just had a comments model (in mongoose) that had an array of subcomments (MongoDB arrays are awesome). Therefore the "trees" (not really trees as we implemented it) could only have one level of indentation ... but that's all we wanted anyways.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact