mongodb 数据对象内又是数组对象 查找怎么查

2025年03月01日 11:52
有2个网友回答
网友(1):

我的设计修改如下:
var josndata ={
text:‘xxxxx’,
id: Objectid2,
children[
{text:‘xxxxxx’,id:Objectid2, pid:objectid },
{text:‘xxxxxx’,id:Objectid4, pid:objectid }
]
}

网友(2):

您好,请问您是想知道mongodb 数据对象内又是数组对象 查找怎么查吗?