Answers for "how to remove an array element by its index in mongodb"

0

how to remove an array element by its index in mongodb

> db.removeArrayElementByItsIndexDemo.update({}, {$unset : {"InstructorSubject.2" : 1 }});
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })
Posted by: Guest on August-27-2021

Code answers related to "how to remove an array element by its index in mongodb"

Browse Popular Code Answers by Language