I’ve been trying to find a solution for a while, I’ve checked all the discussions here but I can’t seem to find a solution to this problem.
The script finds 45993 documents and updates them. On MongoDB Compass the Schema tab says that all “lastupdated” fields are dates.
I tried to convert to string and back to date multiple times without success. I’m always stuck in the same situation, test passes, but status page says “Migration: It does not appear that you correctly converted the type”.
It just seems wrong to me, am I really missing something?