Skip to main content

Interface: DataService<E, F>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:31

Type Parameters

E extends Entity

F extends Filter

Methods

create()

create(entity): Promise<E>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:36

Parameters

entity

E

Returns

Promise<E>


delete()

delete(entity): Promise<void>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:42

Parameters

entity

E

Returns

Promise<void>


load()

load(filter): Promise<E[]>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:32

Parameters

filter

F

Returns

Promise<E[]>


loadById()

loadById(id): Promise<E>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:34

Parameters

id

EntityId

Returns

Promise<E>


update()

update(entity): Promise<E>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:38

Parameters

entity

E

Returns

Promise<E>


updateAll()

updateAll(entity): Promise<E[]>

Defined in: libs/ngrx-toolkit/src/lib/with-data-service.ts:40

Parameters

entity

E[]

Returns

Promise<E[]>