例如const ProjectSchema = new mongoose.Schema({name : { type:String },time : { type:Date, default:Date.now },url : { type: String},user : { type: Object},proId : {type: String},spaceId : {type: String},description: {type: String},participant: {type: Array}我需要 通過 傳入的id 查找,participant里面含有該id的數據
mongoose如何查找摸個數組里含有某個值?
慕田峪7331174
2018-07-22 08:16:57