updating an image in a database

I’ve inserted data into my database collection, one of the fields is an image.
I want to update only the image in my database collection.
2 questions:
1: Is it possible to only update one field in a database collection?
2: How do we update an image field in a database collection?

Sure, you can do it pretty easily with code.

If you have a dataset, you can use the setFieldValue() function to set the new value for the image field and then the save() function to save the changes.

Without a dataset, you can use update() function. Note, that you might need to first retrieve the item you want to update if you don’t already have it.

In either case, the image field doesn’t actually store the image. Rather it stores the image’s url. This can be an internal Wix image url or an external web url as described here .