Mongodb – Need to convert Mongo string field to array of Object
I have a document like this { "_id" : ObjectId("6228cd8e72e74fa2a4bbd76c"), "userId" : 8426, "answer" : "https://cdn.upgrad.com/resumejyotiranjana.docx", "updatedAt" : ISODate("2022-06-09T13:48:17.296Z"), "questionIdentifier" : "resumeLink", } I need to convert answer into array of objects, The existing answer will become resumeLink properties and…