lingva-translate
lingva-translate copied to clipboard
Apollo introspection
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"}}]}