If I have the array[object] schema:
For example:
var operation = new Schema({
name:{type:String},
number:[Number],
});
var Info = new Schema({
operation:[operation],
});
1.when operation.name='jack'; or 2.when operation[i]=100; How to query the condition by Info Schema.
Info.findOne({
condition
},function(e,r){
})
:
via Albert Chen
No comments:
Post a Comment