com.mongodb.casbah.query.dsl
Trait to provide the $currentDate method as bareword operator
$currentDate ("field" -> "date") // to set current date to `field`
or
$currentDate ("field" -> "timestamp") // to set current timestamp to `field`
Takes sequence of tuples (String, String)*, where second element must be either timestamp or date
(String, String)*
timestamp
date
WORKS ONLY IN MONGODB 2.5.3+
2.8.2
http://docs.mongodb.org/manual/reference/operator/update/currentDate/
Trait to provide the $currentDate method as bareword operator
or
Takes sequence of tuples
(String, String)*
, where second element must be eithertimestamp
ordate
WORKS ONLY IN MONGODB 2.5.3+
2.8.2
http://docs.mongodb.org/manual/reference/operator/update/currentDate/