- Preparing search index...
- The search index is not available
docs.hg.fi
Methods
count
- count<T, ID>(metadata: EntityMetadata): Promise<number>
-
Returns Promise<number>
countByProperty
- countByProperty<T, ID>(property: string, value: any, metadata: EntityMetadata): Promise<number>
-
Parameters
-
property: string
-
value: any
-
Returns Promise<number>
deleteAll
- deleteAll<T, ID>(metadata: EntityMetadata): Promise<void>
-
Returns Promise<void>
deleteAllById
- deleteAllById<T, ID>(ids: ID[], metadata: EntityMetadata): Promise<void>
-
Returns Promise<void>
deleteAllByProperty
- deleteAllByProperty<T, ID>(property: string, value: any, metadata: EntityMetadata): Promise<void>
-
Parameters
-
property: string
-
value: any
-
Returns Promise<void>
deleteById
- deleteById<T, ID>(id: ID, metadata: EntityMetadata): Promise<void>
-
Returns Promise<void>
existsByProperty
- existsByProperty<T, ID>(property: string, value: any, metadata: EntityMetadata): Promise<boolean>
-
Parameters
-
property: string
-
value: any
-
Returns Promise<boolean>
findAll
- findAll<T, ID>(metadata: EntityMetadata): Promise<T[]>
-
Returns Promise<T[]>
findAllById
- findAllById<T, ID>(ids: ID[], metadata: EntityMetadata): Promise<T[]>
-
Returns Promise<T[]>
findAllByProperty
- findAllByProperty<T, ID>(property: string, value: any, metadata: EntityMetadata): Promise<T[]>
-
Parameters
-
property: string
-
value: any
-
Returns Promise<T[]>
findById
- findById<T, ID>(id: ID, metadata: EntityMetadata): Promise<T>
-
Returns Promise<T>
findByProperty
- findByProperty<T, ID>(property: string, value: any, metadata: EntityMetadata): Promise<T>
-
Parameters
-
property: string
-
value: any
-
Returns Promise<T>
insert
- insert<T, ID>(entity: T | T[], metadata: EntityMetadata): Promise<T>
-
Returns Promise<T>
update
- update<T, ID>(entity: T, metadata: EntityMetadata): Promise<T>
-
Returns Promise<T>