title: Mongodb aggregation data issue
body: <p>I have 3 tables name doctor, weekdays, hospitals,
  In the doctor table I have doctors like</p>
  <pre><code>[
  {_id:&quot;610d0f36a793342c08b49b0a&quot;,
  hospitals:[
  {_id:&quot;6166c2ea807d823f20722d52&quot;, hospital:&quot;6166c2ea807d823f20722d4f&quot;},
  {_id:&quot;61cd446d20c97e302c667e89&quot;, hospital:&quot;61cd446d20c97e302c667e87&quot;}
  ]}
  ]
  </code></pre>
  <p>Weekdays table</p>
  <pre><code>[
  {_id:&quot;6166c2ea807d823f20722d4f&quot;, hospitalId:&quot;615d4ebc5521472af0aae53d&quot;, fee:&quot;800&quot;},
  {_id:&quot;61cd446d20c97e302c667e87&quot;, hospitalId:&quot;615d4fdb21df0d32c011adbd&quot;, fee:&quot;1000&quot;}
  
  ]
  </code></pre>
  <p>hospitals table</p>
  <pre><code>[
  {_id:&quot;615d4ebc5521472af0aae53d&quot;, hospitalName:&quot;ABC&quot;},
  {_id:&quot;615d4fdb21df0d32c011adbd&quot;, hospitalName:&quot;ABC&quot;}
  ]
  </code></pre>
  <p>I have used this aggregation</p>
  <pre><code>  const data = await Doctor.aggregate([
             {
                $lookup: {
                  from: &quot;weekdays&quot;,
                  localField: &quot;hospitals.hospital&quot;,
                  foreignField: &quot;_id&quot;,
                  as: &quot;hospitals&quot;
                },
          },
           
              { $project: { hospitals: 1 } },
      
            ]);
  </code></pre>
  <p>How to fetch the doctors with fee range?All I want is to fetch doctors with hospitals with a lte and gte fee range
  Please guide me how I can achieve the desired to fetch the doctors with hospitals with fee range filter.</p>