Hello! ๐
How can I delete a row in a database specifically from the current user after wixData.query?
wixData.query("ReviewsPermission")
.eq("_owner", wixUsers.currentUser.id)
.find()
.then((result)=>{
let data = result.items;
let ownerID = data._owner;
// I don't know what's next...
})
I believe this is basic, but I don't know the specific code for this.
Thank you in advance!
YES! I already understand the code and it works! Thanks @Ajit Kumar !
This is for anyone of you who still doesn't know how to remove a row in your database using the code below.
wixData.remove("CollectionName", _id)
The _id in that code is literally the _id in your database NOT the _owner nor any field key in your database because through the use of the _id, it can easily find which row should be deleted. So it's up to you how you will put the specific _id in that code.
Your question is unclear. No one can understand what you wish to delete and from where.