(node:5292) UnhandledPromiseRejectionWarning: MongoError: the update operation document must contain atomic operators. code example
Example: the update operation document must contain atomic operators mongodb
db.c20160712.updateOne(
{ "Attribute" : "good" },
{ $set: {"Type" : "DVD", "Title" : "Matrix, The", "Released" : 1999, "Genre" : "Action" } },
{ upsert: true }
);