Ticket: Migration Issues during migration

Hi.
I´m doing the Chapter 3 and when I execute the migration command I receive this:


C:\Users\pablo\Desktop\DAM2\mflix-js\src\migrations>node movie-last-updated-migration.js
(node:6416) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:6416) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency
(node:6416) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency
(node:6416) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency
Error during migration, MongoParseError: URI malformed, cannot be parsed

C:\Users\pablo\Desktop\DAM2\mflix-js\src\migrations>


(I have to say that I dont know but mi console font color turns red after this)

Another thing I have to say is that I tried this in the main folder (node movie-last-updated-migration.js and src/migrations/node movie-last-updated-migration.js).

Hi @Pablo_Torre, welcome to the community.
Can you please cross-verify the connection string?

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

This is my connection string:
mongodb+srv://m220student:m220password@mflix.1gz8b.mongodb.net/myFirstDatabase

The aplication validates the connection.
The connection string from the ATLAS is this:
mongosh “mongodb+srv://mflix.1gz8b.mongodb.net/myFirstDatabase” --apiVersion 1 --username m220student

I hope this help to found a solution