A collection coll has the following documents:
{_id: 4, type: “A”, value: 60}
{_id: 5, type: “B”, value: 80}
{_id: 6, type: “A”, value: 30}
A collection results has the following documents:
{_id: 1, type: “A”, value: 10}
{_id: 2, type: “B”, value: 20}
{_id: 3, type: “C”, value: 30}
After executing the following aggregation pipeline:
db.coll.aggregate([
{ $match: { type: “A” }},
{ $out: ‘results’} ])
What is the result?