import { DaffInMemoryBackendCartRootService } from '@daffodil/cart/driver/in-memory'
The root cart in-memory backend. Creates the database and delegates requests to child backends.
@Injectable()
class DaffInMemoryBackendCartRootService extends DaffInMemoryBackendDelegate implements InMemoryDbService, DaffInMemoryMultiRouteableBackend {
carts: DaffCart[] = []
protected override
delegateRequest(
reqInfo: RequestInfo
method
): Observable<any>
canHandle(collectionName: string): boolean
createDb(reqInfo: RequestInfo): any
}
DaffCart[]| Default | [] |
|---|---|
| Description | The collection of carts in the backend. |
| Default | – |
|---|---|
| Description |
Observable| Parameter | reqInfo: RequestInfo |
|---|---|
| Description |
| Parameter | method: undefined |
|---|---|
| Description |
boolean| Parameter | collectionName: string |
|---|---|
| Description |
any| Parameter | reqInfo: RequestInfo |
|---|---|
| Description |