Is it possible to populate objects in map schema type?
问题 I have schema type Map in my mongoose model. In this map, each element has reference to another model. I know that it's possible to populate attributes in array, but how about Map type? Be cause nesting like "map_type_attribute.some_attribute_to_populate" doesn't work. :) This is my model: const Mongoose = require('mongoose'); const parameter = Mongoose.Schema({ definition: { type: Mongoose.Schema.Types.ObjectId, ref: 'Definition', }, value: {}, }, {_id: false}); const schema = Mongoose