Merge branch 'boechat107-typehint'

This commit is contained in:
Michael Klishin 2016-01-16 14:28:52 +03:00
commit c54f70350e

View file

@ -167,10 +167,11 @@
(merge m { :limit per-page :skip (monger.internal.pagination/offset-for page per-page) }))
(defmacro with-collection
[^DB db ^String coll & body]
[db coll & body]
`(let [coll# ~coll
^DB db# ~db
db-coll# (if (string? coll#)
(.getCollection ~db ^String coll#)
(.getCollection db# coll#)
coll#)
query# (-> (empty-query db-coll#) ~@body)]
(exec query#)))