Linda_Peng
(Linda Peng)
1
Hello,
With pymongo 3.6.8, I’m getting error when calling db.watch(full_document=‘updatedLookup’, full_document_before_change=‘whenAvailable’). The error message is TypeError: watch() got an unexpected keyword argument ‘full_document_before_change’. The same script worked for another environment.
Do you know what maybe causing this error?
Thanks!
Shane
(Shane Harvey)
2
full_document_before_change was added in PyMongo 4.2:
Changed in version 4.2: Added full_document_before_change parameter.
https://pymongo.readthedocs.io/en/stable/api/pymongo/database.html#pymongo.database.Database.watch
Linda_Peng
(Linda Peng)
3
great, thank you so much!