//call it like this in .ts file
this.service.editData('/order',{order_status:status},key)
//service function .service file
editData(tableName:string,object:any,key:any)
{
console.log('edit',object,key)
return this.db.list(tableName).update(key,object)
}