UNPKG
quosdolorem
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
The MongoDB Shell
github.com/MonaGoyette/quosdolorem.git
MonaGoyette/quosdolorem
quosdolorem
/
packages
/
java-shell
/
src
/
test
/
resources
/
collection
/
findAndCount.js
12 lines
(11 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// before
db
.coll
.deleteMany
({}); db
.coll
.insertMany
([{v:
1
}, {v:
2
}]);
// command
db
.coll
.find
({v:
1
})
.count
();
// command
db
.coll
.find
()
.limit
(
1
)
.count
();
// command
db
.coll
.find
({}, {}, {"comment": "hello"})
.count
();
// clear
db
.coll
.drop
();