Ok! Let;s get to an end to this. ![]()
![]()
Here the code I require is like this
import wixData from 'wix-data';
2
3// ...
4
5let toUpdate = {
6 "currentItem.fullname": "00001",
7 "currentItem.title": "Mr.",
8 "currentItem.bio": "John"
9
10};
11
12wixData.update("myCollection", toUpdate)
13 .then( (results) => {
14 let item = results; //see item below
15 } )
16 .catch( (err) => {
17 let errorMsg = err;
18 } );
((6TH LINE))