GitHub

DaffInMemoryBackendGeographyService

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

import { DaffInMemoryBackendGeographyService } from '@daffodil/geography/driver/in-memory'
@Injectable()
class DaffInMemoryBackendGeographyService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: DAFF_GEOGRAPHY_IN_MEMORY_COLLECTION_NAME
  countries: DaffCountry[]
  get(reqInfo: RequestInfo_2): any
}

Properties

Name Type Description
collectionName DAFF_GEOGRAPHY_IN_MEMORY_COLLECTION_NAME

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

countries DaffCountry[]
get any

Responds to GET requests.