Fix keywordize param for find-map-by-id

This commit is contained in:
Samsonov Ivan 2016-04-26 19:03:44 +03:00
parent f64d085b0f
commit 2b4c0f8168

View file

@ -226,13 +226,13 @@
"Returns a single object, converted to map with matching _id field." "Returns a single object, converted to map with matching _id field."
([^DB db ^String coll id] ([^DB db ^String coll id]
(check-not-nil! id "id must not be nil") (check-not-nil! id "id must not be nil")
(from-db-object ^DBObject (find-one-as-map db coll {:_id id}) true)) (find-one-as-map db coll {:_id id}))
([^DB db ^String coll id fields] ([^DB db ^String coll id fields]
(check-not-nil! id "id must not be nil") (check-not-nil! id "id must not be nil")
(from-db-object ^DBObject (find-one-as-map db coll {:_id id} fields) true)) (find-one-as-map db coll {:_id id} fields))
([^DB db ^String coll id fields keywordize] ([^DB db ^String coll id fields keywordize]
(check-not-nil! id "id must not be nil") (check-not-nil! id "id must not be nil")
(from-db-object ^DBObject (find-one-as-map db coll {:_id id} fields) keywordize))) (find-one-as-map db coll {:_id id} fields keywordize)))
;; ;;
;; monger.collection/count ;; monger.collection/count