[0] Unhandled rejection MongoError: (Unauthorized) not authorized on admin to execute command { listIndexes: "sessions", cursor: { } }
[0] at MongoError.create (/Users/biggahd/Desktop/Mars-EMS-1/backend/node_modules/mongodb-core/lib/error.js:31:11)
[0] at queryCallback (/Users/biggahd/Desktop/Mars-EMS-1/backend/node_modules/mongodb-core/lib/cursor.js:212:36)
[0] at /Users/biggahd/Desktop/Mars-EMS-1/backend/node_modules/mongodb-core/lib/connection/pool.js:469:18
[0] at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Despite enabling the listIndexes in a custom role on MongoDB Atlas and approving all operations, this error persists.
I am currently using an older version of MongoDB -> 2.0.14. Could this be the root of the issue?
My Sails.js version is up to date -> v1.5.7
Please offer guidance on how to resolve this error message.