WriteConcern/SAFE was renamed (and is the default, so not very demonstrative)
This commit is contained in:
parent
da2effbfc9
commit
6206308fa8
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@
|
|||
;; returns write result
|
||||
(monger.collection/insert db \"people\" {:name \"Joe\", :age 30})
|
||||
|
||||
(monger.collection/insert db \"people\" {:name \"Joe\", :age 30, WriteConcern/SAFE})
|
||||
(monger.collection/insert db \"people\" {:name \"Joe\", :age 30, WriteConcern/REPLICAS_SAFE})
|
||||
"
|
||||
([^DB db ^String coll document]
|
||||
(.insert (.getCollection db (name coll))
|
||||
|
|
|
|||
Loading…
Reference in a new issue