Mongoose $pull operator not removing ObjectID from array

前端 未结 0 1482
被撕碎了的回忆
被撕碎了的回忆 2021-02-08 00:37

In my application, I have a post schema (shown below):

const postSchema = new mongoose.Schema({
    file: {
        type: String,
        required: true
    },
           


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