D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
mongo-2.2.7
/
spec
/
support
/
crud_tests
/
read
/
Filename :
count.yml
back
Copy
data: - {_id: 1, x: 11} - {_id: 2, x: 22} - {_id: 3, x: 33} tests: - description: "Count without a filter" operation: name: count arguments: filter: { } outcome: result: 3 - description: "Count with a filter" operation: name: count arguments: filter: _id: {$gt: 1} outcome: result: 2 - description: "Count with skip and limit" operation: name: count arguments: filter: {} skip: 1 limit: 3 outcome: result: 2