RepositoryStorageClassMixIn
Function: RepositoryStorageClassMixIn()
RepositoryStorageClassMixIn<
TBase>(Base): {(...args):(Anonymous class)<TBase>;prototype:(Anonymous class)<any>;create:Promise<InstanceType<T>>;getRepository:Repository<T>;iterate:AsyncGenerator<InstanceType<T>,any,any>;query:Promise<{continuationToken?:string;results:InstanceType<T>[]; }>;ref:ModelRefWithCreate<InstanceType<T>>; } &TBase
Defined in: packages/models/src/repositories/hooks.ts:50
MixIn that adds static repository methods (create, query, iterate, ref, getRepository) to a base class, enabling Model classes to access their repository directly.
Type Parameters
TBase
TBase extends (...args) => object
Parameters
Base
TBase
The base class to augment
Returns
the augmented class with repository methods