Skip to content

Commit faa91f6

Browse files
Note in NEWS.rst about Cursor's builder methods
1 parent a2d36e9 commit faa91f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/NEWS.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ API Changes
2222
- `find()` method now returns `Cursor()` instance that can be used as async generator to
2323
asynchronously iterate over results. It can still be used as Deferred too, so this change
2424
is backward-compatible.
25+
- `Cursor()` options can be by chaining its methods, for example:
26+
::
27+
async for doc in collection.find({"size": "L"}).sort({"price": 1}).limit(10).skip(5):
28+
print(doc)
2529
- `find_with_cursor()` is deprecated and will be removed in the next release.
2630

2731

0 commit comments

Comments
 (0)