lingva-translate icon indicating copy to clipboard operation
lingva-translate copied to clipboard

Apollo introspection

Open Alex-451 opened this issue 2 years ago • 0 comments

Can introspection be enabled so that we can use: ./gradlew :app:downloadApolloSchema --endpoint='https://lingva.ml/api/graphql' --schema=app/src/main/graphql/com/.../lingvatranslate/schema.graphqls to get the scheme.

Right now I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:downloadApolloSchema'.
> cannot get schema from https://lingva.ml/api/graphql: 400:
  {"errors":[{"message":"GraphQL introspection is not allowed by Apollo Server, but the query contained __schema or __type. To enable introspection, pass introspection: true to ApolloServer in production","locations":[{"line":2,"col
umn":3}],"extensions":{"code":"GRAPHQL_VALIDATION_FAILED"}}]}

Alex-451 avatar Feb 20 '23 18:02 Alex-451