Skip to content

Commit

Permalink
Merge pull request #339 from HSLdevcom/DT-3661
Browse files Browse the repository at this point in the history
Add interlineWithPreviousLeg to leg in GraphQL API
  • Loading branch information
Antiik91 authored Jun 30, 2020
2 parents af729bf + 565cde3 commit 8e286d2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3785,6 +3785,12 @@ private void createPlanType(GraphIndex index) {
.type(Scalars.GraphQLString)
.dataFetcher(environment -> ((Leg) environment.getSource()).serviceDate)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("interlineWithPreviousLeg")
.description("Interlines with previous leg. This is true when the same vehicle is used for the previous leg as for this leg and passenger can stay inside the vehicle.")
.type(Scalars.GraphQLBoolean)
.dataFetcher(environment -> ((Leg) environment.getSource()).interlineWithPreviousLeg)
.build())
.field(GraphQLFieldDefinition.newFieldDefinition()
.name("intermediateStops")
.description("For transit legs, intermediate stops between the Place where the leg originates and the Place where the leg ends. For non-transit legs, null.")
Expand Down

0 comments on commit 8e286d2

Please sign in to comment.