You are resetting the entire profile object in your mongo query. It does not just update the one property. You are inherently saying replace the entire object.
You need to rewrite the set part with “profile.pictureUrl”=url to only set a particular property. Quote are required off the top of my head.