Skip to content

Commit

Permalink
Merge pull request #4877 from HSLdevcom/DT-6115
Browse files Browse the repository at this point in the history
fix: otp schema location update
  • Loading branch information
optionsome authored Oct 31, 2023
2 parents f04fc0a + 4951fb8 commit 654d2b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/generate-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const introspectionQuery = getIntrospectionQuery();
const outputJsonFilename = 'schema.json';
const graphqlSchemaSource =
process.env.SCHEMA_SRC ||
'https://raw.githubusercontent.com/HSLdevcom/OpenTripPlanner/dev-2.x/src/ext/resources/legacygraphqlapi/schema.graphqls';
'https://raw.githubusercontent.com/HSLdevcom/OpenTripPlanner/dev-2.x/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls';
const outputGraphQLFilename = 'schema.graphql';
const outputGraphQLFileCopy = `../digitransit-search-util/packages/digitransit-search-util-query-utils/schema/${outputGraphQLFilename}`;

Expand Down
2 changes: 1 addition & 1 deletion docs/GraphQL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

When running otp in localhost, this usually translates to something like:

`cd build; SCHEMA_SRC=~/OpenTripPlanner/src/ext/resources/legacygraphqlapi/schema.graphqls OTP_URL=http://localhost:8080/otp/routers/hsl/index/graphql node generate-schema.js`
`cd build; SCHEMA_SRC=~/OpenTripPlanner/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls OTP_URL=http://localhost:8080/otp/routers/hsl/index/graphql node generate-schema.js`

0 comments on commit 654d2b5

Please sign in to comment.