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,
name,
id,
orientationInDegrees
}) => ({
coordinates: coordinates as Coordinates,
name,
route: parent,
routeId: parent.id,
id,
orientationInDegrees
}));
},
orderedStop: async (parent, args, contextValue, info) => {
@@ -33,4 +35,4 @@ export const RouteResolvers: Resolvers<ServerContext> = {
}
},
},
}
}