Files
2025-06-16 17:44:13 +03:00

13 lines
176 B
JavaScript

db.createUser({
user: "the_username",
pwd: "the_password",
roles: [
{
role: "dbOwner",
db: "the_database",
},
],
});
db.createCollection("todos");