Mongodb – How to check only top 1 in nested mongo array
at the moment my notification documents has an events property which is an array of event. Each event has a status and a date. When querying notifications, it needs to check if the top status is opened. Valid object where…