0

I want to get _id,count of email,count of phone and filter condition is documents having email or phone count more than 3. Any help will be appreciated.

Below is the sample document format:

{

    "_id" : "23243pbfg1-47a9-9d98-23423hffngfkl",

     "key" : {
             "phone" : [
                     "1234567890",
                     "9999999999",
                     "9888888888",
             ],
             "email" : [
                     "abc@test.com",
                     "xyz@test.com",
                     "test@test.com",
                     "qwert@test.com"
             ]
     }
Neil Lunn
  • 148,042
  • 36
  • 346
  • 317

0 Answers0