Closed priyank6796 closed 4 years ago
I cannot reproduce this. I followed exactly the steps you mentioned.
Do you run migrate-mongo up
with the CLI?
If not: just a wild guess, but are you using the migrate-mongo API in a TypeScript project? It might be an issue with the migrate-mongo types provided by the DefinitelyTyped project. This is not something I maintain.
Updates with aggregation pipeline is a 4.2 feature:
https://docs.mongodb.com/manual/tutorial/update-documents-with-aggregation-pipeline/
I received no replies from OP, so I'm closing this. Please feel free to reopen when necessary.
Describe the bug I am trying to update my collection using mongo update query with aggregation which is supported by Mongo version 4.0 and higher. I tried to run the migration using this tool but I have got the error
Migration script
To Reproduce
Expected behavior
Additional context I am able to run the same script from mongo client shell. But gives error with migration tool