I am using angularjs and mongodb and I have schema like the object I paste here.
Now I need to store the whole scope value into an array.
Help how to do this and I need insert query for that.
schema
var Schema = new Schema({
    UnitId: String,
    UnitName: String ,
   Details:[{
   }],
    {strict: false});
insert Query
Details:[{         
            // here i want store my req.body scope value
       }],
 
    