2
我想一个新的字段添加到类型蒙戈的ObjectId所有文件:MongoDB中添加新的字段类型OBJECTID
commentsId: [{type: db.Schema.Types.ObjectId, ref: 'Comment'}]
目前,我有这样的事情,这给了我“...”上Mongoshell 。
db.bids.update({},{$set:[{"commentsId":[]}},false,true)
我该怎么做?提前致谢。
你的问题不明确。 cmd是什么意思? –
我不确定,但由于shell不执行查询,它可能意味着一个shell错误。我在windows上使用mongodb,每当我做出错误的查询时,就会给出'...'。 – sawa