-
Notifications
You must be signed in to change notification settings - Fork 2
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
add GraphQL documentation (except computation) #360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some question
@@ -32,6 +32,13 @@ export class ReviewService { | |||
{ courseNo, semester, academicYear, studyProgram, rating, content }: CreateReviewInput, | |||
userId: string | |||
): Promise<Review> { | |||
if (rating) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get this line. How does the bound check work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I derped. This is supposed to be if (rating < 0 || rating > 10)
Same as below
if (reviewInput.rating) { | ||
throw new BadRequestException({ | ||
reason: 'RATING_OUT_OF_BOUND', | ||
message: `Rating must be between 0 and 10. Got ${reviewInput.rating}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above, What are the example output?
courseCart: [CourseCartItem!] | ||
calendarId: String | ||
|
||
calendarId: String @deprecated(reason: "Will be redesigned.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it unused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not sure if frontend currently accesses it or not. If not, then we can just remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than @saengowp, LGTM
Why did you create this PR
What did you do
Demo
https://dev.cugetreg.com
Checklist