Strapi MongoDB basic configuration

Hello, I would like to ask about MongoDB basic configuration in Strapi.

In Strapi configuration docs, it is said that client is set to mongo if using MongoDB.

However, my Strapi app which was created, I am not sure, but several months ago does not have that : client: 'mongo'. It looks like this:

It works fine (I am using Strapi with MongoDB Atlas).

My question is : is it mandatory to have client: 'mongo' ? Or is it only when using local MongoDB (not MongoDB Atlas) ? Thank you.

System Information
  • Strapi Version: v3.6.5
  • Operating System: Linux
  • Database: MongoDB
  • Node Version: v14.17.1
  • NPM Version: -
  • Yarn Version: v1.22.5

IIRC it is not needed for MongoDB and that field is generally used by the bookshelf connector to determine what database is being used (since our bookshelf connector supports 4 different databases). It was likely added in case mongoose supported other databases besides just MongoDB.

If it’s working without it, then it’s not needed. To that end, keep in mind we will be removing support for MongoDB in our v4 and compatibility for MongoDB will be picked up by the MongoDB team on their own after the v4 release.

Thank you!