GitHub

DaffInMemoryBackendGeographyService

import { DaffInMemoryBackendGeographyService } from '@daffodil/geography/driver/in-memory'

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

@Injectable()
class DaffInMemoryBackendGeographyService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: "countries" = DAFF_GEOGRAPHY_IN_MEMORY_COLLECTION_NAME
  countries: DaffCountry[]

  get(reqInfo: RequestInfo_2): any
}

Properties

collectionName
"countries"
DefaultDAFF_GEOGRAPHY_IN_MEMORY_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.

countries
DaffCountry[]
Default
Description

() Methods

get
any

Responds to GET requests.

Parameters
ParameterreqInfo: RequestInfo_2
Description