db-migrate / mongodb

mongodb driver for db-migrate
Other
25 stars 58 forks source link

does not support mongoDB 6^ version, stuck because of this package #55

Open amitksh3 opened 1 year ago

amitksh3 commented 1 year ago

Hi, This package is not supporting latest mongoDB version 6^, We are using this package for migration, now we are upgrading our application mongodb version to 6^, this package is creating problem , we are stuck because this package not supporting latest mongodb driver version 6^.

below code needs to be corrected

db = config.db || new MongoClient(new Server(host, port)); in index.js file, because new Server() is not supported in latest mongodb driver.