I have collection which has an array field as follows.
availableProducts: [ "mobile", "laptop", "desktop"]
Now I would like to update this field to a string field at the same time i need to keep the values of array as comma separated strings as follows
availableProducts: "mobile,laptop,desktop"
Can we do this with almost 1 million records in MongoDB version 4.0