Fix keywordize param for find-map-by-id
This commit is contained in:
parent
f64d085b0f
commit
2b4c0f8168
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue