cursor
Aggregates documents according to the specified aggregation pipeline.
If the aggregation pipeline ends with an
$out
or$merge
stage, then finds all documents in the affected namespace and returns a MongoCursor over them. You may want to use toCollection instead.Otherwise, returns a MongoCursor producing no elements.