Ticket: Migrations

Question, when I run the script:
python movie_last_updated_migration.py

I get the docs to migrate but fail with i believe it can’t check the type of the field `lastupdated’.

`46014 documents to migrate

Cannot encode object: {‘lastupdated’}`

What i did was to set the predicate like this:
predicate = {"lastupdated": {"$exists": True, "$type": "string"}}
Is there anything am missing? (also completed the bulk_updates)

Your predicate looks fine. What does your UpdateOne operation look like in bulk_updates

1 Like

Found the error, it was in the UpdateOne ops. It works now. Thanks Greg for checking in:)

Glad to hear you got it working!

Greg