github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/e2e/mongo-init.e2e.js (about)

     1  db.auth('root', 'root');
     2  db = db.getSiblingDB('hermes');
     3  db.createUser(
     4      {
     5          user: "hermes",
     6          pwd: "hermes",
     7          roles: [
     8              {
     9                  role: "readWrite",
    10                  db: "hermes"
    11              }
    12          ]
    13      }
    14  );