Is there a way to stop the playground from firing introspection query?

Author: maxuuellCreated Sep 17, 2019Updated May 13, 2025

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

Express Middleware

What is the expected behavior?

We disabled introspection in our apollo server in production, but our playground is still sending an introspection query, which errors out. Would be nice if, since we know we disable introspection in production, that we just "turn off" the introspection query being sent from the playground as well.

I thought setting the option introspection: false at the top level would have done it.

Source: graphql/graphql-playground