We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014b040 commit d2efbdcCopy full SHA for d2efbdc
driver-legacy/src/main/com/mongodb/DBCursor.java
@@ -440,7 +440,9 @@ public DBCursor hint(final DBObject indexKeys) {
440
* @param indexName the name of an index
441
* @return same DBCursor for chaining operations
442
* @mongodb.driver.manual reference/operator/meta/hint/ $hint
443
+ * @deprecated Prefer {@link #hint(DBObject)}
444
*/
445
+ @Deprecated
446
public DBCursor hint(final String indexName) {
447
findOptions.getModifiers().put("$hint", indexName);
448
return this;
0 commit comments