0
当我保存它之前登录的客体的权利,它看起来像这样:在MongoDB中嵌套数组?
{
"type": "events",
"labels": [
"abc",
"123"
],
"keywords": [
[
"a",
"b",
"c",
"d",
"e"
],
[
"1",
"2",
"3",
"4",
"5"
]
],
"_id": "4d9ddac669cb3bf5e855a366"
}
但当时如果我进入蒙戈外壳可以节省这样的...
{
"_id": ObjectId("4d9ddac669cb3bf5e855a366"),
"keywords": [
],
"labels": [
"abc",
"123"
],
"type": "events"
}
什么想法?
通过壳插入它工作正常。我在Node内部的Mongo上使用Mongoose。 – fancy 2011-04-08 01:53:03