-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Query Operations
-
None
The delete command supports a comment, but this is not exposed in pymongo.
https://docs.mongodb.com/v4.4/reference/command/delete/
>>> import pymongo >>> client = pymongo.MongoClient("mongodb://localhost:27017/...") >>> client.foo.bar.delete_many({}, comment="testcomment") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: delete_many() got an unexpected keyword argument 'comment' >>> client.foo.bar.delete_one({}, comment="testcomment") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: delete_one() got an unexpected keyword argument 'comment'
- duplicates
-
PYTHON-2682 Add support for the comment field to all helpers
- Closed