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"
Is it possible to remove a specific value?