标签: mongodb mapreduce aggregation-framework
我正在使用mongodb 3.0.4。我有一个文档集合,其中站点字段是对象。如何将该字段转换为数组?
{ "_id": 123, "site": {"name": "a", "direction: "in"} } { "_id": 321, "site": [{"name": "a", "direction": "in"}] }