My test still fails with the same error above after running the migration script.
I ran the migration script for this ticket. I get the following message:
Found 0 documents to update
No documents to update
On analyzing the documents in my movies collection, the lastUpdated timestamps are indeed parsed to a date type.
Any idea where the error is?
Sorry Kindly ignore this post. I had a typo: the
lastupdated field in my predicate was misspelled as
lastUpdated. As a result, running the script could not find any documents to update with
lastUpdated. This was not supposed to be changed I understand, but I had to play around with the code to see where I went wrong.
Also, I think
lastupdated should follow a camelCase convention when declaring such fields!