drupal-graphql / graphql

GraphQL integration for Drupal 9/10
286 stars 202 forks source link

Disabling introspection breaks Explorer without a (very) helpful error message #1348

Closed acbramley closed 10 months ago

acbramley commented 1 year ago

If a server has introspection disabled, the explorer tab breaks with no apparent reasoning.

The console shows

Uncaught Error: Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: undefined.

We can detect this setting and provide a helpful message