-
Notifications
You must be signed in to change notification settings - Fork 1
removeById
AGenson edited this page Mar 4, 2018
·
3 revisions
Remove the entity with the given id
Property | Type | Default | Description |
---|---|---|---|
ctx |
Object |
required | Will serve to call a service action: ctx.call
|
id |
any |
required | The field id of the entity to update |
Type: Promise
If the entity was removed successfully :
// res = id given in parameter
Promise.resolve({
name: "Operation Successful",
message: `Delete Complete: element (id: ${id}) deleted`,
data: id
});
Else (entity not found / an error occured) :
Promise.reject({ ... });
cf - details about errors
- Home
- Features
- Install
- Usage
-
Database Functions
- Constructor
- Operations
- Database Errors
- Account Management