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,
|
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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user