Cosmetics
This commit is contained in:
parent
4d30f1625d
commit
df7802796a
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@
|
||||||
(monger.collection/update \"people\" { :first_name \"Yoko\" } { :first_name \"Yoko\" :last_name \"Ono\" } :upsert true)
|
(monger.collection/update \"people\" { :first_name \"Yoko\" } { :first_name \"Yoko\" :last_name \"Ono\" } :upsert true)
|
||||||
|
|
||||||
By default :upsert and :multi are false."
|
By default :upsert and :multi are false."
|
||||||
[^String collection, ^Map conditions, ^Map document, & { :keys [upsert multi write-concern] :or { upsert false, multi false, write-concern monger.core/*mongodb-write-concern* } }]
|
[^String collection ^Map conditions ^Map document & { :keys [upsert multi write-concern] :or { upsert false, multi false, write-concern monger.core/*mongodb-write-concern* } }]
|
||||||
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* collection)]
|
(let [^DBCollection coll (.getCollection monger.core/*mongodb-database* collection)]
|
||||||
(.update coll (to-db-object conditions) (to-db-object document) upsert multi write-concern)))
|
(.update coll (to-db-object conditions) (to-db-object document) upsert multi write-concern)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue