peterportal-public-api icon indicating copy to clipboard operation
peterportal-public-api copied to clipboard

Cannot read course id null

Open ramanxg opened this issue 2 years ago • 1 comments

For queries to websoc, some courses we don't have in our cache, and this throws an error.

This is the error message:

Cannot read property 'id' of null"

Example query:

{
  schedule(year:2020, quarter:"Fall", department:"COMPSCI", course_number:"275") {
     course {
      id
      department
      course_level
      description
    }
  }
}

ramanxg avatar Mar 22 '22 05:03 ramanxg