Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: ✨ make single course/instructor query nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Dec 4, 2023
1 parent 35149ae commit 63455bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/routes/v1/graphql/schema/courses.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type Course {
}

extend type Query {
"Get the course with the given ID."
course(courseId: String!): Course!
"Get the course with the given ID, or null if no such course exists."
course(courseId: String!): Course
"Get courses that match the given constraints."
courses(
"The department the courses are in."
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/routes/v1/graphql/schema/instructors.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type Instructor {
}

extend type Query {
"Get the instructor with the corresponding UCInetID."
instructor(ucinetid: String!): Instructor!
"Get the instructor with the corresponding UCInetID, or null if no such instructor exists."
instructor(ucinetid: String!): Instructor
"Get instructors that match the given constraints."
instructors(
"A substring of the instructors' full names."
Expand Down

0 comments on commit 63455bd

Please sign in to comment.