registration-js-vanilla/infra/init.example

14 lines
236 B
Text
Raw Permalink Normal View History

2023-09-11 11:13:41 +00:00
db = db.getSiblingDB("user");
db.createUser({
user: "useradmin",
pwd: "userpassword",
roles: [
{
role: "dbOwner",
db: "registration",
},
],
});
print("Database 'user' and admin user created successfully.");