Hi,
as Delete in entity-storage - App Platform - Freshworks Developer Community, I have the same problem : delete operation always throws the catch.
Is there a way to debug / correct it ?
Here is my code :
async function deleteObj(pID) {
const entity = client.db.entity({ version: "v1" });
const objectList = entity.get("myObject");
try{
console.log("delete");
const resDelete = await objectList.delete(pID);
return true;
}
catch(error){
if (error === undefined){
console.log("catch error undefined");
}
console.error("error deleting : ",error);
}
}
Thanks for your help