eherve / mongoose-datatable

Server side dataTable request support for mongoose
MIT License
42 stars 29 forks source link

How to populate an array of object property? #37

Closed jerome-chen closed 8 years ago

jerome-chen commented 8 years ago

var ServiceModel = new Schema({ name: {type: String, required: true, unique: true},

plugins: [{type: Schema.ObjectId, ref: 'Plugin'}]

});

var PluginModel = new Schema({ name: {type: String, required: true} );

client: { data : "plugins"}, { data : "plugins.name"}

doesn't work.

jerome-chen commented 8 years ago

fixed and created a pull request.