Review
Describes a product review.
Type Definition
type Review {
id: Int
name: String
customer: Customer
title: String
review: String
rating: Int
maxRating: Int
createdAt: String
updatedAt: String
}Fields
| Field | Type | Description |
|---|---|---|
| id | Int | Returns the id. |
| name | String | Returns the name of the reviewer. |
| customer | Customer | Returns the customer or null. |
| title | String | Returns the title. |
| review | String | Returns the review. |
| rating | Int | Returns the rating. |
| maxRating | Int | Returns the maximum rating value. |
| createdAt | String | Returns the date when this review was created. |
| updatedAt | String | Returns the date when this review was updated. |
Relationships
The Review type represents a customer’s evaluation of a product. It contains a reference to the Customer who submitted the review, allowing you to access information about the reviewer. Each review includes rating information with both the given rating and the maximum possible rating value, enabling you to calculate percentage-based representations of the review score.
Example
{
id
name
customer {
id
email
}
title
review
rating
maxRating
createdAt
updatedAt
}Implements
None