public class ProductReviewQuery extends AbstractQuery<ProductReviewQuery>
_queryBuilder, ALIAS_SUFFIX_SEPARATOR, CUSTOM_FIELD_LABEL| Modifier and Type | Method and Description |
|---|---|
ProductReviewQuery |
addFragmentReference(Fragment<ProductReviewQuery> fragment)
Adds a
ProductReviewQuery fragment reference at the current position of the query. |
ProductReviewQuery |
averageRating()
The average rating for product review.
|
ProductReviewQuery |
createdAt()
Date indicating when the review was created.
|
static Fragment<ProductReviewQuery> |
createFragment(String name,
ProductReviewQueryDefinition queryDef)
Creates a GraphQL "named" fragment with the specified query type definition.
|
ProductReviewQuery |
nickname()
The customer's nickname.
|
ProductReviewQuery |
product(ProductInterfaceQueryDefinition queryDef)
Contains details about the reviewed product
|
ProductReviewQuery |
ratingsBreakdown(ProductReviewRatingQueryDefinition queryDef)
An array of ratings by rating category, such as quality, price, and value
|
ProductReviewQuery |
summary()
The summary (title) of the review
|
ProductReviewQuery |
text()
The review text.
|
addCustomObjectField, addCustomSimpleField, appendQuotedString, startField, startInlineFragment, withAliaspublic ProductReviewQuery averageRating()
public ProductReviewQuery createdAt()
public ProductReviewQuery nickname()
public ProductReviewQuery product(ProductInterfaceQueryDefinition queryDef)
public ProductReviewQuery ratingsBreakdown(ProductReviewRatingQueryDefinition queryDef)
public ProductReviewQuery summary()
public ProductReviewQuery text()
public static Fragment<ProductReviewQuery> createFragment(String name, ProductReviewQueryDefinition queryDef)
name - The name of the fragment, must be unique for a given GraphQL request.queryDef - The fragment definition.public ProductReviewQuery addFragmentReference(Fragment<ProductReviewQuery> fragment)
ProductReviewQuery fragment reference at the current position of the query.
For example for a fragment named test, calling this method will add the
reference ...test in the query. For GraphQL types implementing an interface, there
will be some similar methods using the Query type of each implemented interface.fragment - The fragment to reference.Copyright © 2022 Adobe. All rights reserved.