ltonetwork / mongodb-rest

JSON REST server for MongoDB (using node.js)
MIT License
405 stars 143 forks source link

Update mongo nodejs driver #62

Closed Minstel closed 5 years ago

Minstel commented 6 years ago

When performing npm install, the following message appears:

npm WARN deprecated mongodb@1.4.7: Please upgrade to 2.2.19 or higher

With this version of driver, app does not work with mongodb version 3.x, only with 2.x. When running tests with mongodb 3.x, they fail with the message:

MongoError: The field 'strict' is not a valid collection option. Options: { strict: true }

Also current version of driver does not support using promises, that could have make the code much shorter.