From dd890231ee5cdc067bf4cdb10e320bde203691fe Mon Sep 17 00:00:00 2001 From: Stijn Opheide Date: Wed, 6 Jan 2016 12:00:08 +0100 Subject: [PATCH] Fix cursor hinting The .hint method should be applied on the cursor object instead of the DBObject contained in the hint field. --- src/clojure/monger/query.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clojure/monger/query.clj b/src/clojure/monger/query.clj index a86c21e..2d93313 100644 --- a/src/clojure/monger/query.clj +++ b/src/clojure/monger/query.clj @@ -106,7 +106,7 @@ (when snapshot (.snapshot cursor)) (when hint - (.hint (to-db-object hint))) + (.hint cursor (to-db-object hint))) (when read-preference (.setReadPreference cursor read-preference)) (when options