Add $isolated operator
This commit is contained in:
parent
82c76dd66d
commit
0d7dc9357a
1 changed files with 6 additions and 0 deletions
|
|
@ -314,3 +314,9 @@
|
||||||
;; EXAMPLES:
|
;; EXAMPLES:
|
||||||
;; (mgcol/update coll { :_id oid } { $currentDate { :lastModified true } })
|
;; (mgcol/update coll { :_id oid } { $currentDate { :lastModified true } })
|
||||||
(defoperator $currentDate)
|
(defoperator $currentDate)
|
||||||
|
|
||||||
|
;; Isolates intermediate multi-document updates from other clients.
|
||||||
|
;;
|
||||||
|
;; EXAMPLES:
|
||||||
|
;; (mgcol/update "libraries" { :language "Clojure", $isolated 1 } { $inc { :popularity 1 } } {:multi true})
|
||||||
|
(defoperator $isolated)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue