Find the longest item in array of strings in MongoDB
A have a collection Products in MongoDB: { "name": "My Product 01", "description": "This is an excelent product", "tags": [ "AA", "BBBB", "C", "DDDDDDDDDDD" ] } How can I find the single longest occurrence if an item in the whole…