Consider I am having a Mongoose Schema defined:
var MySchema = new mongoose.Schema({
field: mongoose.Schema.Types.String
});
now can I get the empty JSON object, something like
var MyJSON = MySchema.getJSON(); //This is where I want answers
So that MyJSON will be:
{
field:'';
}
So I can create a Empty JSON object and use it, like:
MyJSON.field = 'my_new_value';
Advanced Thanks for help..