Currently, my app is maintaining a database with given company details. The purpose of the following function is to remove specific data from the attributes. I have stored values inside an attribute called ‘ID’ as an array:
"ID":["A1","A2","A3"]
Function:
function removeCompany(e){
e.target.parentNode.remove();
var removeID = console.log(e.target.id);
client.db.update("TicketID","remove", [{"ID":removeID}]).then(function(data) {
console.log(data)
}, function(error) {
console.log(error)
});
When I ran this, I got a 422 error with the message: " Keys or paths inside attributes object cannot be blank"
I am trying to remove the ticketId[i] and the value[i] with the given condition, but this is not working. I would really appreciate it if you could look at this as well. Thank you again!