wixData.get() not working.

Hi, Thanks for the answer. I tried to use bulk update but unables because of array variable. It will be best if you can explain me about “r.items”. How this update only the required term?

I know I have results but I used get() to update only individual field which is possible only with get & update combination, according to what I know. I added the console.log() to check the function break. But this doesn’t have any effect on then. The issue is with the .then variable “resutls”. I’ve to make this empty. Also, I’ve update the my initial code to the following to make it working: -

export function button8_click(event) {
wixData.query("kisaandiary")
.eq("_owner", wixUsers.currentUser.id)
.find()
.then(r => {
    console.log(r.items);
 for (var index = 0; index < r.items.length ; index++){
 var aee = r.items[index]._id;
        console.log(aee);
 
        wixData.get("kisaandiary", aee)
            .then( results => {
                console.log(results);
                results.kdtransfirm = "";
                                console.log("Going to Update"+results)
    results.kdtransfirm = $w('#input1').value; // updated last name
    wixData.update("kisaandiary", results);
  } )
  .catch( (err) => {
 let errorMsg = err;
    console.log(errorMsg);
  } );
    }
//}
})
}

Even, I also know this is lengthy & time taking code that’s why I’m using your code :). I just put the correct code to make a choice for others according to the conditions.

Thanks for your valuable time for the detailed answer.