Change TYPE string to ISODate for lastupdated

db.movies.find().forEach(function(data){data.lastupdated= ISODate(data.lastupdated);db.movies.save(data);});

is it OK?

Why I can’t change string type to ISODate for lastupdated using this?

Hi @Wiktor_39062,

For operations which we need to perform in bulk(large amounts), we need to use bulkWrite operation.
I would highly recommend please go through the lecture again.

https://docs.mongodb.com/manual/core/bulk-write-operations/

Kanika