add orientation data to route resolver

This commit is contained in:
2025-03-17 13:25:37 -07:00
parent 024a7dd30c
commit 891bf522ba

View File

@@ -10,12 +10,14 @@ export const RouteResolvers: Resolvers<ServerContext> = {
coordinates, coordinates,
name, name,
id, id,
orientationInDegrees
}) => ({ }) => ({
coordinates: coordinates as Coordinates, coordinates: coordinates as Coordinates,
name, name,
route: parent, route: parent,
routeId: parent.id, routeId: parent.id,
id, id,
orientationInDegrees
})); }));
}, },
orderedStop: async (parent, args, contextValue, info) => { orderedStop: async (parent, args, contextValue, info) => {