Update Record

Please How do I update an existing record in wix code

You should be using wixData.update, something like this…

import wixData from 'wix-data';

// ...

let toUpdate = {
  "_id":          "00001",
  "title":        "Mr.",
  "first_name":   "John",
  "last_name":    "Doe"
};

wixData.update("myCollection", toUpdate);

Okay thanks will try it out

I just tried and got this error
" Unhandled promise rejection TypeError: Error.captureStackTrace is not a function "
I am still new on wix code, i want a situation where a staff can select a record from the grid and update the content of a specific column cell

The above code works…

What is your collection name that you want to update ?

What is the _id of the item in the collection that you want to update ?

What are the individual field names for the item that you want to update ?