Error running migration

Running node movie-last-updated-migration.js throws this error: Error during migration, MongoError: cannot do raw queries on admin in atlas.

Any help will be appreciated.

From here, it looks like you are not selecting the correct database.

1 Like

Thanks, it has been resolved. The cause was process.env.MFLIX_NS returning undefined.

1 Like