'Why does mongoose find returns all data with not existing property

I have a mongoose schema; model; DB is connected; I can create objects, everything works so far.
When I want to fetch some data by using:

let result = await MyModel.find({ age: 30 });

The result should have all records in the DB which have age = 30
since I have no records I expect empty object as result, instead I got all records from DB
Can someone explain this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source