This: https://www.mongodb.com/docs/realm/sdk/swift/users/custom-user-data/#update-a-user-s-custom-data
To update a single field in custom data, shouldn’t the code be update: ["$set": ["favoriteColor": "cerulean"]]
instead of update: ["favoriteColor": "cerulean"]
?