Preparing search index...
The search index is not available docs.hg.fi
Interface Repository<T, ID>
Methods
count
count( ) : Promise < number >
Returns Promise < number >
delete
delete( entity: T ) : Promise < void >
Returns Promise < void >
delete All
delete All( ) : Promise < void >
Returns Promise < void >
delete All( entities: T [] ) : Promise < void >
Returns Promise < void >
delete All By Id
delete All By Id( ids: ID [] ) : Promise < void >
Returns Promise < void >
delete By Id
delete By Id( id: ID ) : Promise < void >
Returns Promise < void >
exists By Id
exists By Id( id: ID ) : Promise < boolean >
Returns Promise < boolean >
find
find( propertyName: string , value: any ) : Promise < T [] >
Parameters
propertyName: string
value: any
Returns Promise < T [] >
find All
find All( ) : Promise < T [] >
Returns Promise < T [] >
find All By Id
find All By Id( ids: ID [] ) : Promise < T [] >
Returns Promise < T [] >
find By Id
find By Id( id: ID ) : Promise < T >
Returns Promise < T >
save
save( entity: T ) : Promise < T >
Returns Promise < T >
save All
save All( entities: T [] ) : Promise < T [] >
Returns Promise < T [] >
Warning! You shouldn't use Persister directly through this API.
This interface is exposed as public for our own internal implementation, because TypeScript doesn't support a concept like "friends" found from other languages.