0

I have simple aggregate query in mongo:

    collection.aggregate([
        { 
            $match: { owner } 
        }, { 
            $group: { 
                _id: "$email" ,
                count: { $sum: 1 }
            }
        }
    ])

but in the result I need see emails with count great than 3.

How can I do this?

Davide Patti
  • 3,201
  • 2
  • 15
  • 19
tolyan
  • 699
  • 2
  • 8
  • 22

0 Answers0