From 6330cee24ab0976b3960262a9e0248a8ce6f8a39 Mon Sep 17 00:00:00 2001 From: Deamon Wang Date: Sun, 18 May 2014 12:10:05 +0800 Subject: [PATCH] fix doc error for update --- src/clojure/monger/collection.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clojure/monger/collection.clj b/src/clojure/monger/collection.clj index 15271f3..f31242d 100644 --- a/src/clojure/monger/collection.clj +++ b/src/clojure/monger/collection.clj @@ -346,10 +346,10 @@ ;; 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) + (monger.collection/update db \"people\" {:first_name \"Yoko\"} {:first_name \"Yoko\" :last_name \"Ono\"} {:upsert true}) By default :upsert and :multi are false." ([^DB db ^String coll ^Map conditions ^Map document]