mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add orientation data to route resolver
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user