...
1collection_name: &collection_name "driverdata"
2database_name: &database_name "test"
3
4tests:
5 -
6 description: "Find with projection and sort"
7 operations:
8 -
9 object: collection
10 name: find
11 arguments:
12 filter: { b: { $gt: 5 } }
13 projection: { _id: 0 }
14 sort: { a: 1 }
15 limit: 5
16 result:
17 - {"a": 5, "b": 6, "c": 7}
18 - {"a": 6, "b": 7, "c": 8}
19 - {"a": 7, "b": 8, "c": 9}
20 - {"a": 8, "b": 9, "c": 10}
21 - {"a": 9, "b": 10, "c": 11}
22 expectations:
23 -
24 command_started_event:
25 command:
26 find: *collection_name
27
View as plain text