Fix cursor hinting
The .hint method should be applied on the cursor object instead of the DBObject contained in the hint field.
This commit is contained in:
parent
85560e17f8
commit
b0df70f279
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue