Closed jerome-chen closed 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.
fixed and created a pull request.
var ServiceModel = new Schema({ name: {type: String, required: true, unique: true},
});
var PluginModel = new Schema({ name: {type: String, required: true} );
client: { data : "plugins"}, { data : "plugins.name"}
doesn't work.