From a55573afbd95751ea9d19e5ebb1a139acaa2f911 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Sun, 22 Dec 2024 18:50:48 -0800 Subject: [PATCH] make some types optional to avoid needing to typecast --- schema.graphql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/schema.graphql b/schema.graphql index 95f50c9..b3a8568 100644 --- a/schema.graphql +++ b/schema.graphql @@ -6,11 +6,11 @@ type Query { type System { id: ID! name: String! - routes: [Route!]! + routes: [Route!] route(id: ID): Route - stops: [Stop!]! + stops: [Stop!] stop(id: ID): Stop - shuttles: [Shuttle!]! + shuttles: [Shuttle!] shuttle(id: ID): Shuttle } @@ -18,9 +18,9 @@ type Route { name: String! id: ID! system: System! - orderedStops: [OrderedStop!]! + orderedStops: [OrderedStop!] nextOrderedStop(forStopId: ID): OrderedStop - shuttles: [Shuttle!]! + shuttles: [Shuttle!] polylineCoordinates: [Coordinates!]! color: String! } @@ -37,8 +37,8 @@ type Stop { name: String! coordinates: Coordinates! system: System! - etas: [ETA!]! - orderedStops: [OrderedStop!]! + etas: [ETA!] + orderedStops: [OrderedStop!] } type Coordinates { @@ -56,8 +56,8 @@ type Shuttle { name: String! id: ID!, coordinates: Coordinates! - route: Route! - system: System! - etas: [ETA!]! + route: Route + system: System + etas: [ETA!] eta(forStopId: ID): ETA }