为什么我在MongoDB中的字段现在为空?

我插入每一个在mongo数据库字段像{text:data.text,userId:'5454234ddsc32fcsd23dsdfe3'} 。插入更多的领域,像这样一个仍然没问题,剩下的都是null。我该怎么办?我认为mongo看到这个像重复。我认为我应该允许重复。这里是我的模式。

 var ConversationsSchema=new Schema({ conversations:{type:Array, text:String, sender:String, to:String, userId:{type:String,select:true,unique:false} } }) 

更新查询:

 Conversations.update(({_id:data.conversationID},{$addToSet:{conversations:{text:data.textMessage,sender:data.sender,to:data.to,userId:data.userId}}}),function(err){ //console.log('Cannot update your conversation') console.log(err); }) 

谢谢你的帮助!

更新! 架构必须是:

 var ConversationsSchema=new Schema({ conversations:{type:Array, text:String, sender:String, to:String, userId:{type:String,select:true,index:{unique:false}} }})