import { DaffReviewsInMemoryBackendService } from '@daffodil/reviews/driver/in-memory'
An in-memory service that stubs out the backend services for getting reviews.
@Injectable()
class DaffReviewsInMemoryBackendService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
readonly collectionName: "reviews" = DAFF_REVIEWS_IN_MEMORY_COLLECTION_NAME
reviews: DaffProductReviews<DaffProductReview>
get(reqInfo: RequestInfo): any
}
"reviews"| Default | DAFF_REVIEWS_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. |
DaffProductReviews<DaffProductReview>| Default | – |
|---|---|
| Description |
anyResponds to GET requests.
| Parameter | reqInfo: RequestInfo |
|---|---|
| Description |