I am trying to get all fields of document using pymongo. but getting only group by fields. I want all documents with all fields.
collection.aggregate([
{"$group": {
"_id": {"des": "$Descreption", "price": "$NewPrice"}, "count": {"$sum": 1}}
},
{"$match": {"_id" :{ "$ne" : "null" } , "count" : {"$gt": 1} } },
{"$project": {"Descreption" : "$_id", "_id" : 0} }
])