I'm struggling to identify the issue in my query. My goal is to retrieve the count of "alerts" with the "resolved: false" field, so my query is :
Alertes.find({resolved: false}).count();
Unfortunately, it's returning 0 even though I have one entry in the collection with resolved set to false.
If anyone could assist me in identifying what mistake I may be making, I would greatly appreciate it.