ISystemOperationalResource
Resource writes returned by IOperationalResource.asSystem. Same error contract as
IScopedOperationalResource: create and update resolve to { ok: false, error },
delete throws on a hook rejection and resolves to false when the record did not exist.
Properties
create
create: (
record) =>Promise<CreateResourceRecordResult&object>
Parameters
| Parameter | Type |
|---|---|
record | any |
Returns
Promise<CreateResourceRecordResult & object>
delete
delete: (
primaryKey) =>Promise<boolean>
Parameters
| Parameter | Type |
|---|---|
primaryKey | any |
Returns
Promise<boolean>
update
update: (
primaryKey,record) =>Promise<any>
Parameters
| Parameter | Type |
|---|---|
primaryKey | any |
record | any |
Returns
Promise<any>