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_2
method
): Observable<any>
canHandle(collectionName: string): boolean
createDb(reqInfo: RequestInfo_2): any
}
DaffCart[]
Default | [] |
---|---|
Description | The collection of carts in the backend. |
Default | – |
---|---|
Description |
Observable<any>
Parameter | reqInfo: RequestInfo_2 |
---|---|
Description |
Parameter | method: undefined |
---|---|
Description |
boolean
Parameter | collectionName: string |
---|---|
Description |
any
Parameter | reqInfo: RequestInfo_2 |
---|---|
Description |