Hi. I have documents in collection. One document from all has key active: true and in that document I have to push object. How do I do that?

前端 未结 0 1193
情深已故
情深已故 2021-01-21 02:29

Once again here is a schema:

const pollsSchema = new Schema({
    poll: [{
        user: {
            _id: String,
            name: String
        },
        cn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题