Get Array containing objects to normal object which have value as key in MongoDb result
I have this in [ { "date": "2022-12-03T12:16:52.403Z", "configs": [ { "name": "Shubham", "values": [ { "text": "172cm", "type": "Height", }, { "text": "80kg", "type": "Weight", }, { "text": "male", "type": "Gender", }, ], } ] }, {....},{....} ] Want…