GitHub

DaffInMemoryBackendCartRootService

The root cart in-memory backend. Creates the database and delegates requests to child backends.

import { DaffInMemoryBackendCartRootService } from '@daffodil/cart/driver/in-memory'
@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)
}

Properties

Name Type Description
carts DaffCart[]

The collection of carts in the backend.

override
delegateRequest Observable<any>
canHandle boolean
createDb