async function populateReviewMetrics() {
  const [averageStarRating, numberOfReviews] = await Promise.all([
    this.getAverageStarRating(),
    this.getReviewCount()
  ]);
  this.averageStarRating = averageStarRating;
  this.numberOfReviews = numberOfReviews;
  return this;
}
/**
 * Set this Thing object's virtual data fields for review metrics (performs
 * table lookups, hence asynchronous). Does not save.
 *
 * @returns {Thing}
 *  the modified thing object
 * @memberof Thing
 * @instance
 */
Set this Thing object's virtual data fields for review metrics (performs
table lookups, hence asynchronous). Does not save.

@returns {Thing}
the modified thing object
@memberof Thing
@instance
Set this Thing object ' s virtual data fields for review metrics ( performs table lookups hence asynchronous ) . Does not save . @returns { Thing } the modified thing object @memberof Thing @instance
async function populateReviewMetrics() {
  const [averageStarRating, numberOfReviews] = await Promise.all([
    this.getAverageStarRating(),
    this.getReviewCount()
  ]);
  this.averageStarRating = averageStarRating;
  this.numberOfReviews = numberOfReviews;
  return this;
}
async function populateReviewMetrics ( ) { const [ averageStarRating , numberOfReviews ] = await Promise . all ( [ this . getAverageStarRating ( ) , this . getReviewCount ( ) ] ) ; this . averageStarRating = averageStarRating ; this . numberOfReviews = numberOfReviews ; return this ; }
Set this Thing object's virtual data fields for review metrics (performs
 table lookups, hence asynchronous).
Set this Thing object ' s virtual data fields for review metrics ( performs table lookups hence asynchronous ) .