useModelRepository
Function: useModelRepository()
useModelRepository<
T>(name):Repository<ModelClass<T>>
Defined in: packages/core/src/core/hooks.ts:99
Get the repository for a model, typed as Repository
Type Parameters
T
T extends Model
Parameters
name
string | T | CustomConstructor<T>
the name to use
Returns
Repository<ModelClass<T>>
the result