Skip to content

Commit 86791d8

Browse files
committed
Update docs and changelog
1 parent 34d3dc7 commit 86791d8

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ is a `gridfs
1616
<http://www.mongodb.org/display/DOCS/GridFS+Specification>`_
1717
implementation on top of ``pymongo``.
1818

19-
PyMongo supports MongoDB 2.6, 3.0, 3.2, and 3.4.
19+
PyMongo supports MongoDB 2.6, 3.0, 3.2, 3.4, and 3.6.
2020

2121
Support / Feedback
2222
==================

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, **kwargs)
55-
.. automethod:: find_one_and_update(filter, update, projection=None, sort=None, return_document=ReturnDocument.BEFORE, **kwargs)
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)
5656
.. automethod:: count
5757
.. automethod:: distinct
5858
.. automethod:: create_index

doc/changelog.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ a MongoDB 2.4 server or older, PyMongo now throws a
1313

1414
Highlights include:
1515

16+
- Support for change streams. See the
17+
:meth:`~pymongo.collection.Collection.watch` method for details.
18+
- Support for array_filters in
19+
:meth:`~pymongo.collection.Collection.update_one`,
20+
:meth:`~pymongo.collection.Collection.update_many`,
21+
:meth:`~pymongo.collection.Collection.find_one_and_update`,
22+
:meth:`~pymongo.operations.UpdateOne`, and
23+
:meth:`~pymongo.operations.UpdateMany`.
1624
- New Session API, see :meth:`~pymongo.mongo_client.MongoClient.start_session`.
1725
- New methods :meth:`~pymongo.collection.Collection.find_raw_batches` and
1826
:meth:`~pymongo.collection.Collection.aggregate_raw_batches` for use with
@@ -39,7 +47,7 @@ Deprecations:
3947
:meth:`~pymongo.database.Database.remove_user` methods are deprecated. See
4048
the method docstrings for alternatives.
4149

42-
Breaking changes include:
50+
Unavoidable breaking changes:
4351

4452
- Certain commands, such as ``ismaster`` and ``ping``, that could be used
4553
to check whether a server is available without requiring authentication, now

0 commit comments

Comments
 (0)