remyla/damas-core

server-nodejs: update to MongoDB v6.x

Opened this issue · 0 comments

We currently communicate with MongoDB using the MongoDB NodeJS driver version 2.2.36 (https://www.npmjs.com/package/mongodb/v/2.2.36). A typical installation is to run a mvertes/alpine-mongo container embedding a MongoDB 3.6.5.

As we seek for performance improvement on the back-end database (requested by the studio Fabrique d'Images, Luxembourg) an update to support the latest MongoDB (6.18 at that time) would be necessary.

Some directives:

  • support the new driver in a new separate mongodb6.js file so we can keep backward compatibility (as the MongoDB major versions 4, 5, 6 have compatibility breaks)
  • run the tests with the new driver
  • write documentation about potential changes implied regarding the damas-core layer