Interface EmbeddedAPI
interface EmbeddedAPI {
create<T>(doc: T, options: DynOptionsMapCreate<string, InstanceType<T>>): DynMapReducer<string, InstanceType<T>>;
destroy<T>(doc?: T, storeName?: string): boolean;
get<T>(doc: T, storeName: string): DynMapReducer<string, InstanceType<T>>;
}
create<T>(doc: T, options: DynOptionsMapCreate<string, InstanceType<T>>): DynMapReducer<string, InstanceType<T>>;
destroy<T>(doc?: T, storeName?: string): boolean;
get<T>(doc: T, storeName: string): DynMapReducer<string, InstanceType<T>>;
}
Methods
create
- create<T>(doc, options): DynMapReducer<string, InstanceType<T>>
Creates an embedded collection store.
Type Parameters
- T extends NamedDocumentConstructor
Parameters
- doc: T
- options: DynOptionsMapCreate<string, InstanceType<T>>
Returns DynMapReducer<string, InstanceType<T>>
destroy
- destroy<T>(doc?, storeName?): boolean
- Destroys one or more embedded collection stores.
Type Parameters
- T extends NamedDocumentConstructor
Parameters
Optional
doc: TOptional
storeName: string
Returns boolean
get
- get<T>(doc, storeName): DynMapReducer<string, InstanceType<T>>
- Returns a specific existing embedded collection store.
Type Parameters
- T extends NamedDocumentConstructor
Parameters
- doc: T
- storeName: string
Returns DynMapReducer<string, InstanceType<T>>
Provides the public embedded reactive collection API.