Skip to Content

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

FieldTypeDescription
idIntReturns the id.
nameStringReturns the name of the reviewer.
customerCustomerReturns the customer or null.
titleStringReturns the title.
reviewStringReturns the review.
ratingIntReturns the rating.
maxRatingIntReturns the maximum rating value.
createdAtStringReturns the date when this review was created.
updatedAtStringReturns 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