如何在mongodb中的二叉树中获取和更新或插入数据

时间:2019-05-15 02:25:32

标签: java mongodb spring-boot

我有一个关于我的问题的案例,我使用mongodb作为数据库,我混淆了如何用二进制树在mongodb中插入或更新,例如:

parentid : 54
tittle   : xxx
children : parentid : 5
           title     : bbbb
           children   : parentid : 44
                        title     : yyyy

``

its a dynamic tree, and for example i want to finf parentid with id 44 and update or insert it... thank you

0 个答案:

没有答案