Merge pull request #141 from eunmin/add_currentDate_operator

Add currentDate operator
This commit is contained in:
Michael Klishin 2016-08-19 08:41:29 +03:00 committed by GitHub
commit 668e46d57f

View file

@ -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)