Class: AliasStore<T, K, E>
AliasStore allow to expose a Store as another route with another model This is useful to store small collection in the registry
The RegistryStore will default to a model, then specific models from the target collection can be exposed via an endpoint like users
Webda Modda
Extends
AbstractAliasStore
<T
,K
,E
>
Type parameters
• T extends CoreModel
= CoreModel
• K extends AliasStoreParameters
= AliasStoreParameters
• E extends StoreEvents
= StoreEvents
Constructors
new AliasStore(webda, name, params)
new AliasStore<
T
,K
,E
>(webda
,name
,params
):AliasStore
<T
,K
,E
>
Parameters
• webda: Core
<CoreEvents
>
The main instance of Webda
• name: string
The name of the service
• params: DeepPartial
<K
>= {}
The parameters block define in the configuration file
Returns
AliasStore
<T
, K
, E
>
Inherited from
AbstractAliasStore
.constructor
Source
packages/core/src/services/service.ts:334
Properties
_cacheStore
_cacheStore:
Store
<T
,StoreParameters
,StoreEvents
>
Cache store