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,391
  • 2
  • 18
  • 20
tolyan
  • 809
  • 3
  • 10
  • 27

0 Answers0