Skip to content

Commit 7ad7639

Browse files
authored
(DOCS-12289): Document behavior when hinting non-existent index (#2219)
* Add behavior for non-existent index * tech review
1 parent d014486 commit 7ad7639

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/reference/method/cursor.hint.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ Behavior
6363

6464
- .. include:: /includes/fact-hint-text-query-restriction.rst
6565

66-
- You cannot use :method:`~cursor.hint()` on a :doc:`hidden index
67-
</core/index-hidden>`.
66+
- If you use :method:`~cursor.hint()` on a :doc:`hidden index
67+
</core/index-hidden>` or an index that doesn't exist, the operation
68+
returns an error.
6869

6970
- On a :term:`time series collections <time series collection>`, you
7071
can only specify hints using the index name, not the index key

0 commit comments

Comments
 (0)