Skip to Content

Review

A product review, including content, rating, author, and related metadata.

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 contains a reference to the Customer object, allowing you to access information about the reviewer. Each review is associated with a single customer who authored it. The customer relationship may be null if the reviewer information is unavailable.

Example

query { review(id: 12345) { id name title review rating maxRating createdAt updatedAt customer { id email } } }

Implements

This type does not implement any interfaces.