Does pymongo 3.6 support db.watch() argument 'full_document_before_change'?

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!

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

great, thank you so much!