6.th -line -----> should be the ID!
It should be:
"currentItem._id": "founded_ItemID_here",
You have found the ID already before (at the beginning)
let itemID = result.items._id (for example)
And then all the rest of your data…
6 "currentItem.fullname": "Ajit Kumar",
7 "currentItem.title": "Total-Beginner,
8 "currentItem.bio": "BIO"
![]()
![]()
![]()
So at the end your UPDATE-DATA will be …
let toUpdate = {
5 "currentItem._id": "12342Dreew1603ID", //EXAMPLE!
6 "currentItem.fullname": "Ajit Kumar",
7 "currentItem.title": "Total-Beginner,
8 "currentItem.bio": "Bio,
};
This should now normaly update in the right place.