I had a mongoose model with a property attachments which was a string array. I have changed it's type to an object array with keys url and type.
The newly created records are working fine but when I retrieve the old records with string array as type using Model.findOne({}), the results are in a weird format. The string values are converted to object array with position of the letter as key.
But in the db, the values are still in string array format
Any idea what's happening here?

