fix doc error for update
This commit is contained in:
parent
96f05c7c01
commit
9e68868028
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@
|
|||
|
||||
;; add :band field to all the records found in \"people\" collection, otherwise only the first matched record
|
||||
;; will be updated
|
||||
(monger.collection/update db \"people\" {} {\"$set\" {:band \"The Beatles\"}} :multi true)
|
||||
(monger.collection/update db \"people\" {} {\"$set\" {:band \"The Beatles\"}} {:multi true})
|
||||
|
||||
;; inserts the record if it did not exist in the collection
|
||||
(monger.collection/update db \"people\" {:first_name \"Yoko\"} {:first_name \"Yoko\" :last_name \"Ono\"} {:upsert true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue