mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
create updated schema with required IDs
This commit is contained in:
@@ -26,8 +26,10 @@ type Route {
|
|||||||
type OrderedStop {
|
type OrderedStop {
|
||||||
nextStop: OrderedStop
|
nextStop: OrderedStop
|
||||||
previousStop: OrderedStop
|
previousStop: OrderedStop
|
||||||
route: Route!
|
route: Route
|
||||||
stop: Stop!
|
routeId: ID!
|
||||||
|
stop: Stop
|
||||||
|
stopId: ID!
|
||||||
}
|
}
|
||||||
|
|
||||||
type Stop {
|
type Stop {
|
||||||
@@ -44,8 +46,10 @@ type Coordinates {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ETA {
|
type ETA {
|
||||||
stop: Stop!
|
stop: Stop
|
||||||
shuttle: Shuttle!
|
stopId: ID!
|
||||||
|
shuttle: Shuttle
|
||||||
|
shuttleId: ID!
|
||||||
secondsRemaining: Float!
|
secondsRemaining: Float!
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -54,6 +58,7 @@ type Shuttle {
|
|||||||
id: ID!,
|
id: ID!,
|
||||||
coordinates: Coordinates!
|
coordinates: Coordinates!
|
||||||
route: Route
|
route: Route
|
||||||
|
routeId: ID!
|
||||||
etas: [ETA!]
|
etas: [ETA!]
|
||||||
eta(forStopId: ID): ETA
|
eta(forStopId: ID): ETA
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user