When I change document I see field new value. But sometimes I want to see its old value (or it would be correctly say, its current value). I know that I can see changed fields in _changed_fields
attribute and something tells me that I can see the current value too. But I can't find where. And my searches gave no result.
What I want to notice: I want to find the solution for mongoengine
, not for pymongo
. Because I know that I can query document by pymongo
and get the document, but it is an extra query to database and I would prefer not to bother db once more.
So, repeating the question above: how can I get current field value of a changed document in mongoengine
?