diff --git a/build/generate-schema.js b/build/generate-schema.js index 3c6a2f617d..a443bdc910 100644 --- a/build/generate-schema.js +++ b/build/generate-schema.js @@ -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}`; diff --git a/docs/GraphQL.md b/docs/GraphQL.md index 5f9452977f..cacf6299d4 100644 --- a/docs/GraphQL.md +++ b/docs/GraphQL.md @@ -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`