Create and Save a Record with MongoDb

Tell us what’s happening:
Describe your issue in detail here.
I keep getting the following error. I can access my DB but i cant seem to execute any comnand to save a new record on it. Any help???
ok: 0,
code: 8000,
codeName: ‘AtlasError’
}
GET
MongoError: (Unauthorized) not authorized on admin to execute command { insert: “people”, documents: [[{favoriteFoods [eggs fish fresh fruit]} {_id ObjectID(“62cb80586a84cd00901dc5b3”)} {name Jane Fonda} {age 84} {__v 0}]], ordered: true, writeConcern: { w: “majority” }, lsid: { id: {4 [49 176 6 109 27 164 71 15 170 222 237 167 111 130 7 86]} }, txnNumber: 2.000000, $clusterTime: { clusterTime: {1657503826 1}, signature: { hash: {0 [133 244 88 13 5 101 147 249 75 15 168 186 241 46 243 66 96 143 5 142]}, keyId: 7094064007551647744.000000 } }, $db: “admin” }
at Connection. (/home/runner/boilerplate-mongomongoose/node_modules/mongodb/lib/core/connection/pool.js:453:61)
at Connection.emit (node:events:394:28)
at processMessage (/home/runner/boilerplate-mongomongoose/node_modules/mongodb/lib/core/connection/connection.js:456:10)
at TLSSocket. (/home/runner/boilerplate-mongomongoose/node_modules/mongodb/lib/core/connection/connection.js:625:15)
at TLSSocket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:199:23) {
Your project link(s)

solution: https://replit.com/@MikhailKostien1/boilerplate-express#myApp.js

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Meet the Node console

Link to the challenge:

Hi

There are a couple of suggestions in this forum thread that might be helpful.

The error message looks very similar to the one that you’re seeing.

(I get a 404 error when I click on the link to your replit).