Closed Shumisen closed 5 months ago
Tested creating a Review with a rating input and not leaving a comment, check picture below. (postman approved)
Tested creating a Review with a rating input and a comment statement, check picture below(postman approved)
Tested creating a Review without rating input and and not leaving a comment(postman approved) Is there a risk by leaving it like that? Thoughts? On review database it is shown as you inserted a 0 rating by default.
Otherwise the Code works great for me. Even Dany checked it on hers.
One other thing i forgot to mention, is maybe to have an issue where we can put every created review and get a message back when the review gets created in postman?
Find all reviews from a specific seller.
Goals:
[x] Implement DBRef to Review model
[x] Add custom query for Reviews that shows all reviews for a specified seller(ratedUserId).
[x] Change Review Create operation to take existing IDs to fill the reference fields.
[x] Test the new methods in Postman
Extra additions:
Not done: Check if buying user is allowed to make a review(Need to have a order that is completed) - Should implement this in another branch