remove nextOrderedStop from Route schema

This commit is contained in:
2024-12-22 19:51:14 -08:00
parent 4d904bab10
commit 2ca9551bfa
2 changed files with 0 additions and 9 deletions

View File

@@ -18,7 +18,6 @@ type Route {
name: String! name: String!
id: ID! id: ID!
orderedStops: [OrderedStop!] orderedStops: [OrderedStop!]
nextOrderedStop(forStopId: ID): OrderedStop
shuttles: [Shuttle!] shuttles: [Shuttle!]
polylineCoordinates: [Coordinates!]! polylineCoordinates: [Coordinates!]!
color: String! color: String!

View File

@@ -88,14 +88,6 @@ export const resolvers: Resolvers<ServerContext> = {
} }
}, },
Route: { Route: {
nextOrderedStop: (parent, args, contextValue, info) => {
const orderedStop = parent.orderedStops?.find((orderedStop) => orderedStop.stop?.id === args.forStopId);
if (!orderedStop || !orderedStop.nextStop) {
return null;
}
return orderedStop.nextStop;
},
}, },
Shuttle: { Shuttle: {
eta: (parent, args, contextValue, info) => { eta: (parent, args, contextValue, info) => {