13 lines
176 B
JavaScript
13 lines
176 B
JavaScript
db.createUser({
|
|
user: "the_username",
|
|
pwd: "the_password",
|
|
roles: [
|
|
{
|
|
role: "dbOwner",
|
|
db: "the_database",
|
|
},
|
|
],
|
|
});
|
|
|
|
db.createCollection("todos");
|