Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.org/manual/reference/operator/update/currentDate/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
*Referrer*: https://www.google.co.id/
*Screen Resolution*: 1366 x 768
*repo*: docs
*source*: reference/operator/update/currentDate
*Location*: https://docs.mongodb.org/manual/reference/operator/update/currentDate/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 *Referrer*: https://www.google.co.id/ *Screen Resolution*: 1366 x 768 *repo*: docs *source*: reference/operator/update/currentDate
-
0.25
Description
Cases like adding currentDate while doing push to an array is needed e.g.
collection.update(
|
{
|
'_id': user_id |
},
|
{
|
'$push' : { |
'projects': { |
'_id': project_id, |
'name': 'risky', |
'description': "A test project for Dynamic Risk." |
},
|
},
|
'$currentDate': {'projects.last_modified': True} |
})
|
|
(Which doesn't work and there is no documentation of it)