Mongodb administrator privileges issues?

the mongodb database is deployed on the cloud server, and the super administrator

node

clipboard.png

is set up according to the steps on the Internet.

here is my node code

var url = "mongodb://kezuncheng:123456@127.0.0.1:27017/";

router.post("/register", (req, res) => {
  MongoClient.connect(url, (err, db) => {
    if (err) {
      console.log(err);
      return;
    }
    const test = db.db("admin");
    test.collection("users").find({ username: req.body.username }).toArray((err, result) => {
      if (err) {
        res.send(err);
        return;
      }
      //
      //
    })
  });
});

I would like to ask where this problem lies.

Apr.20,2022

try replacing test.collection ('users') with test.collection (' system.users')?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b8f7-4ed36.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b8f7-4ed36.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?