Correct type hints
This commit is contained in:
parent
a04596cdc5
commit
f37db1fa84
2 changed files with 3 additions and 4 deletions
|
|
@ -227,7 +227,7 @@
|
|||
;; monger.collection/find-and-modify
|
||||
;;
|
||||
|
||||
(defn ^DBObject find-and-modify
|
||||
(defn ^IPersistentMap find-and-modify
|
||||
"Atomically modify a document (at most one) and return it.
|
||||
|
||||
EXAMPLES:
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
;; monger.multi.collection/find-and-modify
|
||||
;;
|
||||
|
||||
(defn ^DBObject find-and-modify
|
||||
(defn ^IPersistentMap find-and-modify
|
||||
"Like monger.collection/find-and-modify but always takes a database as explicit argument"
|
||||
([^DB db ^String collection ^Map conditions ^Map document & {:keys [fields sort remove return-new upsert keywordize] :or
|
||||
{fields nil sort nil remove false return-new false upsert false keywordize true}}]
|
||||
|
|
@ -358,4 +358,3 @@
|
|||
(.distinct (.getCollection db (name collection)) ^String (to-db-object key)))
|
||||
([^DB db ^String collection ^String key ^Map query]
|
||||
(.distinct (.getCollection db (name collection)) ^String (to-db-object key) (to-db-object query))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue