part 12 done
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
db.createUser({
|
||||
user: 'the_username',
|
||||
pwd: 'the_password',
|
||||
roles: [
|
||||
{
|
||||
role: 'dbOwner',
|
||||
db: 'the_database',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
db.createCollection('todos');
|
||||
|
||||
db.todos.insert({ text: 'Write code', done: true });
|
||||
db.todos.insert({ text: 'Learn about containers', done: false });
|
||||
Reference in New Issue
Block a user