1

I have mongo document like this:

{
 "pw" : [
   {
     "id" : 123,
     "qty" : 10
   },
   {
     "id" : 456,
     "qty" : 15
   }

 ]
}

Id and qty is Number type in Atlas Search. I want to search like "id = 123" and qty > 5.

I USED EQUALS and RANGE operator for this, but it is not working. How can I set criteria for specific document level (not in array level)?

0 Answers0