Skip to content

Commit e485c07

Browse files
committed
PYTHON-2036 Update documentation and changelog to reflect expanded support for index hinting
1 parent 043c8e8 commit e485c07

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/api/pymongo/collection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
.. automethod:: find_raw_batches(filter=None, projection=None, skip=0, limit=0, no_cursor_timeout=False, cursor_type=CursorType.NON_TAILABLE, sort=None, allow_partial_results=False, oplog_replay=False, modifiers=None, batch_size=0, manipulate=True, collation=None, hint=None, max_scan=None, max_time_ms=None, max=None, min=None, return_key=False, show_record_id=False, snapshot=False, comment=None)
5252
.. automethod:: find_one(filter=None, *args, **kwargs)
5353
.. automethod:: find_one_and_delete
54-
.. automethod:: find_one_and_replace(filter, replacement, projection=None, sort=None, return_document=ReturnDocument.BEFORE, session=None, **kwargs)
55-
.. automethod:: find_one_and_update(filter, update, projection=None, sort=None, return_document=ReturnDocument.BEFORE, array_filters=None, session=None, **kwargs)
54+
.. automethod:: find_one_and_replace(filter, replacement, projection=None, sort=None, return_document=ReturnDocument.BEFORE, hint=None, session=None, **kwargs)
55+
.. automethod:: find_one_and_update(filter, update, projection=None, sort=None, return_document=ReturnDocument.BEFORE, array_filters=None, hint=None, session=None, **kwargs)
5656
.. automethod:: count_documents
5757
.. automethod:: estimated_document_count
5858
.. automethod:: distinct

doc/changelog.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ Changes in Version 3.11.0
66

77
Version 3.11 adds support for MongoDB 4.4. Highlights include:
88

9+
- Added index hinting support to the
10+
:meth:`pymongo.collection.Collection.replace_one`,
11+
:meth:`pymongo.collection.Collection.update_one`,
12+
:meth:`pymongo.collection.Collection.update_many`,
13+
:meth:`pymongo.collection.Collection.find_one_and_replace`,
14+
and :meth:`pymongo.collection.Collection.find_one_and_update` commands.
15+
- Added index hinting support to the
16+
:class:`pymongo.operations.ReplaceOne`,
17+
:class:`pymongo.operations.UpdateOne`,
18+
and :class:`pymongo.operations.UpdateMany` bulk operations.
919
- Support for :ref:`OCSP` (Online Certificate Status Protocol)
1020
- Support for `PyOpenSSL <https://pypi.org/project/pyOpenSSL/>`_ as an
1121
alternative TLS implementation. PyOpenSSL is required for :ref:`OCSP`

0 commit comments

Comments
 (0)