Mongoose Populate not working with Array of ObjectIds
问题 Here is my schema: /** Schemas */ var profile = Schema({ EmailAddress: String, FirstName: String, LastName: String, BusinessName: String }); var convSchema = Schema({ name: String, users: [{ type: Schema.Types.ObjectId, ref: 'Profiles' }], conversationType: { type: String, enum: ['single', 'group'], default: 'single' }, created: { type: Date, default: Date.now }, lastUpdated: { type: Date, default: Date.now } }); /** Models */ db.Profiles = mongoose.model('Profiles', profile); db