4 ms·
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 yo
by antimora 15y ago
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?
- travisglines 15y agoWe 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.