Provides the public embedded reactive collection API.

interface EmbeddedAPI {
    create<T extends NamedDocumentConstructor>(
        doc: T,
        options: DynOptionsMapCreate<string, InstanceType<T>>,
    ): DynMapReducer<string, InstanceType<T>>;
    destroy<T extends NamedDocumentConstructor>(
        doc?: T,
        storeName?: string,
    ): boolean;
    get<T extends NamedDocumentConstructor>(
        doc: T,
        storeName: string,
    ): DynMapReducer<string, InstanceType<T>>;
}

Methods

    • Destroys one or more embedded collection stores.

    Type Parameters

    Parameters

    • Optionaldoc: T
    • OptionalstoreName: string

    Returns boolean