GitHub

DaffInMemoryBackendProductService

An in-memory service that stubs out the backend services for getting products.

import { DaffInMemoryBackendProductService } from '@daffodil/product/driver/in-memory'
@Injectable()
class DaffInMemoryBackendProductService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: DAFF_PRODUCT_IN_MEMORY_COLLECTION_NAME
  protected _products: DaffProduct[]
  get products(): DaffProduct[]
  get(reqInfo: any)
}

Properties

Name Type Description
collectionName DAFF_PRODUCT_IN_MEMORY_COLLECTION_NAME
_products DaffProduct[]
products DaffProduct[]

The collection of products in the backend.

get

Returns products based on the url given.