Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cursor hinting #126

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

stijnopheide
Copy link
Contributor

Problem

When hinting a cursor an exception is thrown on execution of the query.

IllegalArgumentException No matching field found: hint for class com.mongodb.BasicDBObject clojure.lang.Reflector.getInstanceField (Reflector.java:271)

Solution

The .hint method should be applied on the cursor object instead
of the DBObject contained in the hint field.

The .hint method should be applied on the cursor object instead
of the DBObject contained in the hint field.
@michaelklishin michaelklishin self-assigned this Jan 6, 2016
michaelklishin added a commit that referenced this pull request Jan 6, 2016
@michaelklishin michaelklishin merged commit 1764b89 into michaelklishin:master Jan 6, 2016
@michaelklishin
Copy link
Owner

Thank you, please submit a change log update PR and credit yourself!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants