IOperationalResource
Properties
count()
count: (
filter
) =>Promise
<number
>
Parameters
Parameter | Type |
---|---|
filter | IAdminForthFilter | IAdminForthFilter [] |
Returns
Promise
<number
>
create()
create: (
record
) =>Promise
<object
>
Parameters
Parameter | Type |
---|---|
record | any |
Returns
Promise
<object
>
createdRecord
createdRecord:
any
error?
optional
error:string
ok
ok:
boolean
delete()
delete: (
primaryKey
) =>Promise
<boolean
>
Parameters
Parameter | Type |
---|---|
primaryKey | any |
Returns
Promise
<boolean
>
get()
get: (
filter
) =>Promise
<any
>
Parameters
Parameter | Type |
---|---|
filter | IAdminForthFilter | IAdminForthFilter [] |
Returns
Promise
<any
>
list()
list: (
filter
,limit
?,offset
?,sort
?) =>Promise
<any
[]>
Parameters
Parameter | Type |
---|---|
filter | IAdminForthFilter | IAdminForthFilter [] |
limit ? | number |
offset ? | number |
sort ? | IAdminForthSort | IAdminForthSort [] |
Returns
Promise
<any
[]>
update()
update: (
primaryKey
,record
) =>Promise
<any
>
Parameters
Parameter | Type |
---|---|
primaryKey | any |
record | any |
Returns
Promise
<any
>