Thank @steevej , here my solution based on your suggestion: { $set : { "mapname" : {$arrayElemAt: ['$mapname.name',0] } }} that gave me the string value
1 Like
Thank @steevej , here my solution based on your suggestion: { $set : { "mapname" : {$arrayElemAt: ['$mapname.name',0] } }} that gave me the string value