Update an existing row in DB in new data

Hi Oren,

please note in the update documentation the following section:
http://www.wix.com/code/reference/wix-data.html#update

If an item in the collection has that _idvalue, update replaced the item’s property values with the ones in the specified item. If the existing item had properties with values and those properties were not included in the supplied item, the values in those properties are lost. The item’s _updatedDate property is also updated to the current date.

so you will need to copy all the fields from the item you read in your db, just like you do with the _id, you need to do the same with all the rest of the fields

let toUpdate = {
 "_id": exists.items[0]._id ,
 "email" : emailSession,
 "wixTemplate": wixDesign
 };

Shlomi