Mongodb – Get all unique values from a collection array object field
I have the collection sessions: [ { "_id": "", "members": [ { "user_id": "11", "joined_at": "2023-06-15T04:50:06.298Z" }, { "user_id": "23", "joined_at": "2023-06-15T04:50:06.298Z" }, { "user_id": "73", "joined_at": "2023-06-15T04:50:06.298Z" } ] }, { "_id": "", "members": [ { "user_id": "59", "joined_at":…