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

feat: ✨ make single course/instructor query nullable (WIP) #116

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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