mongodb在嵌套数组或列表中查找

时间:2019-05-27 15:35:56

标签: arrays mongodb list queue

为什么我没有得到这个find命令的答案?

db.test01.find( { Data: { $gte: 95 } }, {"Data.$": 1} );

测试/示例数据:

"Data" : {
    "a" : [  NumberLong(524288),  NumberLong(154981),  NumberLong(99) ],
    "b" : [  NumberLong(524288),  NumberLong(54i341),  NumberLong(32) ],
    "c" : [  NumberLong(524288),  NumberLong(159212),  NumberLong(96) ],
    ...
}

0 个答案:

没有答案