Mongodb – Copy field of each element in an array of a sub-property to another field
I have a collection of documents in MongoDB that all look similar to this: { "WorkspacePartTeamsite" : { "SiteContents" : [ { "_id" : "00000000-0000-0000-0000-000000000002", "Name" : "PublicFiles", }, { "_id" : "ad57fee3-e478-46a6-a8c1-499dcc98995f", "Name" : "Private", }, ... ] }…