GitHub

DaffInMemoryBackendCartService

import { DaffInMemoryBackendCartService } from '@daffodil/cart/driver/in-memory'

@Injectable()
class DaffInMemoryBackendCartService implements DaffInMemorySingleRouteableBackend {
  readonly collectionName: "cart" = DAFF_CART_IN_MEMORY_CART_COLLECTION_NAME

  get(reqInfo: RequestInfo_2): any
  post(reqInfo: RequestInfo_2): any
}

Properties

collectionName
"cart"
DefaultDAFF_CART_IN_MEMORY_CART_COLLECTION_NAME
Description

The collection name of the backend service where the backend only serves one collection. Used for routing requests to the correct backend.

() Methods

get
any
Parameters
ParameterreqInfo: RequestInfo_2
Description
post
any
Parameters
ParameterreqInfo: RequestInfo_2
Description