mongo这种结构的json数据如何查询出数量呢?
{
_id: 1,
title:'MongoDB入门篇',
author:[{name:'A1'},{name:'A4'},{name:'A3'},{name:'A2'}, ]
}
我想查询出_id是1的数据中有多少位作者?
{
_id: 1,
title:'MongoDB入门篇',
author:[{name:'A1'},{name:'A4'},{name:'A3'},{name:'A2'}, ]
}
我想查询出_id是1的数据中有多少位作者?
2016-07-28
举报