showing results for - "mongoosastic update index"
Erika
28 Jan 2018
1MovieSchema.findOneAndUpdate(query, reqObject, {
2        upsert: true,'new': true
3    }, function(err, results) {
4        if (err) {
5            console.log(err)
6            return;
7        } else {
8			console.log("Data updated in ElasticSearch & MongoDB")
9            console.log(results)
10        }
11    });
similar questions
queries leading to this page
mongoosastic update index