You are sharing code that set the field lastModified but your screenshot shows that you are having issue with the field createdAt.
If you are not updating createdAt in your code then may be you are using mongoose or some other abstraction layer.
I have never done it so I cannot share anything. I just know that it should be possible
Here is a link to change stream.