-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.4.0
-
Component/s: Write Ops
-
None
-
Environment:Windows,Linux
-
ALL
-
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
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.