From 5fe66c15174758dc86c9d6ec020f20840dc6b869 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Thu, 23 Jan 2025 03:23:15 -0800 Subject: [PATCH] create updated schema with required IDs --- schema.graphqls | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/schema.graphqls b/schema.graphqls index d2105a3..3d26683 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -26,8 +26,10 @@ type Route { type OrderedStop { nextStop: OrderedStop previousStop: OrderedStop - route: Route! - stop: Stop! + route: Route + routeId: ID! + stop: Stop + stopId: ID! } type Stop { @@ -44,8 +46,10 @@ type Coordinates { } type ETA { - stop: Stop! - shuttle: Shuttle! + stop: Stop + stopId: ID! + shuttle: Shuttle + shuttleId: ID! secondsRemaining: Float! } @@ -54,6 +58,7 @@ type Shuttle { id: ID!, coordinates: Coordinates! route: Route + routeId: ID! etas: [ETA!] eta(forStopId: ID): ETA }