From df09c4085d81385e7245249de52e2cc0d6f82710 Mon Sep 17 00:00:00 2001 From: eunmin Date: Fri, 19 Aug 2016 14:19:50 +0900 Subject: [PATCH] Add operator --- src/clojure/monger/operators.clj | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/clojure/monger/operators.clj b/src/clojure/monger/operators.clj index 481aa60..505b9dd 100644 --- a/src/clojure/monger/operators.clj +++ b/src/clojure/monger/operators.clj @@ -286,3 +286,9 @@ (defoperator $search) (defoperator $language) (defoperator $natural) + +;; $currentDate operator sets the value of a field to the current date, either as a Date or a timestamp. The default type is Date. +;; +;; EXAMPLES: +;; (mgcol/update coll { :_id oid } { $currentDate { :lastModified true } }) +(defoperator $currentDate)