GitHub

DaffCustomerInMemoryBackendService

An in-memory service that delegates customer queries to child backends via the DAFF_CUSTOMER_IN_MEMORY_BACKENDS.

import { DaffCustomerInMemoryBackendService } from '@daffodil/customer/driver/in-memory'
@Injectable()
class DaffCustomerInMemoryBackendService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: DAFF_CUSTOMER_IN_MEMORY_COLLECTION_NAME
  customers: Record<DaffCustomer['id'], DaffCustomer>
  get(reqInfo: RequestInfo_2)
  put(reqInfo: RequestInfo_2)
}

Properties

Name Type Description
collectionName DAFF_CUSTOMER_IN_MEMORY_COLLECTION_NAME
customers Record<DaffCustomer['id'], DaffCustomer>
get

Gets a customer.

put