Promise
This function will calculate the average rate, average sub rates and total count of reviews for a single target.
Algorithm:
Total stats:
Sub rates stats:
Create review into database
Promise<{id: string}> id of created review record
get one review by id
Promise<ReviewModel | undefined>
Get review list from database
Optional
opts: { Optional
filterOptional
orderOptional
pagination?: PaginationOptionspaginated review list query result
update review into database
Promise<{id: string}> id of updated review record
Private
dbPrivate
endpointPrivate
reviewStatic
Private
Readonly
COLLECTION_Generated using TypeDoc
Calculate review statistics for a single target