From 63455bdec89c8b4903f562eca3a2b868a863fbcd Mon Sep 17 00:00:00 2001 From: Eddy Chen <89349085+ecxyzzy@users.noreply.github.com> Date: Mon, 4 Dec 2023 14:14:49 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20make=20single=20course/inst?= =?UTF-8?q?ructor=20query=20nullable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/routes/v1/graphql/schema/courses.graphql | 4 ++-- apps/api/src/routes/v1/graphql/schema/instructors.graphql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/src/routes/v1/graphql/schema/courses.graphql b/apps/api/src/routes/v1/graphql/schema/courses.graphql index f7584eec..ca496793 100644 --- a/apps/api/src/routes/v1/graphql/schema/courses.graphql +++ b/apps/api/src/routes/v1/graphql/schema/courses.graphql @@ -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." diff --git a/apps/api/src/routes/v1/graphql/schema/instructors.graphql b/apps/api/src/routes/v1/graphql/schema/instructors.graphql index 0bb3a637..d18005fd 100644 --- a/apps/api/src/routes/v1/graphql/schema/instructors.graphql +++ b/apps/api/src/routes/v1/graphql/schema/instructors.graphql @@ -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."