Skip to content

Commit a56234e

Browse files
committed
mongo playgound files
1 parent 8375917 commit a56234e

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// MongoDB Playground
2+
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
3+
4+
// The current database to use.
5+
use('codingcoach');
6+
7+
db.getCollection('mentorships')
8+
.deleteMany({});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// MongoDB Playground
2+
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
3+
4+
// The current database to use.
5+
use('codingcoach');
6+
7+
try {
8+
9+
db.getCollection('mentorships')
10+
.updateOne({
11+
_id: ObjectId('60de24ebfd14b7f8d116f4d2')
12+
}, {
13+
$set: {
14+
'status': 'New'
15+
}
16+
})
17+
} catch(e) {
18+
print('error', e);
19+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// MongoDB Playground
2+
// Use Ctrl+Space inside a snippet or a string literal to trigger completions.
3+
4+
// The current database to use.
5+
use('codingcoach');
6+
7+
db.getCollection('mentorships')
8+
.updateOne({
9+
_id: ObjectId('60e5431d3f48a5e331348066')
10+
}, {
11+
$set: {
12+
'reminderSentAt': null
13+
}
14+
});

0 commit comments

Comments
 (0)