Why do I get this error? Why the update only works with strings? I also have fields of numbers that needs to be updated, what if I have images that needs to be updated? How can I update them only with code?
You must have _id key inside the object if you want to update an existing item (otherwise it won’t know which item to update).
If you want to insert a new item then use wixData.insert() instead
I’m trying to update the product ID of the product in the database, the key _id is a system key inside the Products collection, and it defiantly does exist.