【发布时间】:2016-06-16 13:20:27
【问题描述】:
Mongo DB 集合是
{
findId: xyz,
mainArray:[{
andFindThisObjectId:abc,
pushInThisArray:[{newValue,anotherValue}}
}]
}
所以在这里我想在 pushInThisArray 字段中找到并推动更多价值
【问题讨论】:
-
{newValue,anotherValue}不是有效的 BSON?请详细说明您的问题... -
pushInThisArray:[{newValue,anotherValue}} => pushInThisArray:[{newValue,anotherValue}]
标签: arrays node.js mongodb mongoose mongodb-query