-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Product Reviews GraphQl support #27882
Adding Product Reviews GraphQl support #27882
Conversation
Hi @eduard13. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
app/code/Magento/ReviewGraphQl/Model/Resolver/Product/RatingSummary.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Model/ResourceModel/GetProductRatingSummary.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Model/Resolver/Product/Reviews.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Service/GetReviewAverageRatingService.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Model/Resolver/Product/Review/Rating.php
Outdated
Show resolved
Hide resolved
3d3de76
to
ee622ac
Compare
app/code/Magento/ReviewGraphQl/Model/DataProvider/ReviewsDataProvider.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Review/Api/GetProductRatingSummaryInterface.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Review/Service/GetReviewAverageRatingService.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Model/DataProvider/CustomerReviewsDataProvider.php
Outdated
Show resolved
Hide resolved
app/code/Magento/ReviewGraphQl/Model/Resolver/CreateProductReview.php
Outdated
Show resolved
Hide resolved
@rogyar the suggestions have been applied. |
@magento run all tests |
1 similar comment
@magento run all tests |
Hi @eduard13, thank you for your contribution! |
can I use pagination for reviews graphql ? |
@huykon yes pagination is supported for reviews. https://github.com/magento/architecture/blob/master/design-documents/graph-ql/coverage/catalog/product-reviews.graphqls. https://github.com/magento/partners-magento2ee/pull/250 |
@nrkapoor thanks you. I found that |
@nrkapoor I can not mutation to create new review if user login. what is the nickname if user loged In? |
@huykon Can you provide more details about the error you are getting? Thanks! |
@prabhuram93 I set |
@prabhuram93 That's good. I forgot bearer token with customer logged in situation. |
Description (*)
This PR implements the Product Reviews GraphQl
Solution Architecture
#250
Related Pull Requests
https://github.com/magento/partners-magento2ee/pull/250
https://github.com/magento/partners-magento2-infrastructure/pull/7
Fixed Issues (if relevant)
Manual testing scenarios (*)
Product Query
Product reviews should be available for the Product query
Product Review Rating Metadata Query
Customer Query
Create Product Review Mutation
Questions or comments
Contribution checklist (*)