Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
2.4.0
-
None
-
Windows,Linux
-
ALL
-
Description
I have a collection:
{
"student_id":"123",
"test": [
]
}
I want to unset date_created for all the test object for student_id 123, I placed the query as:
db.students.update(
{ "$unset" : { "test.$.date_created" : ""}}), but it doesn't work. Whereas the same query works if I want to "$set" any field.