2025-03-17 20:58:26 +01:00

24 lines
563 B
YAML

collection_name: &collection_name "driverdata"
database_name: &database_name "test"
tests:
-
description: "Aggregate with pipeline (project, sort, limit)"
operations:
-
object: collection
name: aggregate
arguments:
pipeline:
- $project: { _id: 0 }
- $sort: { a: 1 }
- $limit: 2
result:
- { a: 1, b: 2, c: 3 }
- { a: 2, b: 3, c: 4 }
expectations:
-
command_started_event:
command:
aggregate: *collection_name