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

2025-03-01 11:52:56
推荐回答(2个)
回答1:

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

回答2:

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