I am using the below query and getting double data in the output collection
db.product_catalog.aggregate([
{$match:{manufacturer:"mi"}},
{$project:{manufacturer:1,model:1}},
{$out:"newcollection"}
])
I am using the below query and getting double data in the output collection
db.product_catalog.aggregate([
{$match:{manufacturer:"mi"}},
{$project:{manufacturer:1,model:1}},
{$out:"newcollection"}
])