Is it possible to add elements into an array in a mongoDB schema?
For instance, in the given schema:
var ProviderSchema = new Schema({
keyWords: [String]
});
How can I insert data into the keyWords field using the specified route:
app.put('/providers/words/:provider_id', function(req, res) {
// Code to add to the array goes here
})
Appreciate your help in advance.