Skip to main content

IOperationalResource

Properties

count()

count: (filter) => Promise<number>

Parameters

ParameterType
filterIAdminForthFilter | IAdminForthFilter[]

Returns

Promise<number>


create()

create: (record) => Promise<object>

Parameters

ParameterType
recordany

Returns

Promise<object>

createdRecord

createdRecord: any

error?

optional error: string

ok

ok: boolean


delete()

delete: (primaryKey) => Promise<boolean>

Parameters

ParameterType
primaryKeyany

Returns

Promise<boolean>


get()

get: (filter) => Promise<any>

Parameters

ParameterType
filterIAdminForthFilter | IAdminForthFilter[]

Returns

Promise<any>


list()

list: (filter, limit?, offset?, sort?) => Promise<any[]>

Parameters

ParameterType
filterIAdminForthFilter | IAdminForthFilter[]
limit?number
offset?number
sort?IAdminForthSort | IAdminForthSort[]

Returns

Promise<any[]>


update()

update: (primaryKey, record) => Promise<any>

Parameters

ParameterType
primaryKeyany
recordany

Returns

Promise<any>