Skip to content
Supabase Database Changelog·

Supabase pg_graphql 1.6.0 Disables GraphQL Introspection by Default

Breaking change in pg_graphql 1.6.0 — GraphQL introspection disabled by default

Key Takeaway

Supabase says pg_graphql 1.6.0 will disable GraphQL introspection by default in new projects starting 2026-06-29. Existing projects are affected only after upgrading to pg_graphql 1.6.0+; tools that rely on introspection must explicitly opt in, while regular data queries remain unaffected.

Why It Matters

Disabling introspection by default reduces API enumeration risk without affecting regular data operations, while tools that rely on schema discovery need introspection enabled on each schema they use.

Technical Breakdown · Distilled from the original source

Rollout and API behavior

  • The June 13 update moved the rollout from June 15 to June 29, 2026, to allow additional AMI build verification. The rest of the rollout plan is unchanged. Projects created on or after June 29 run pg_graphql 1.6.0 or later. Existing projects retain their behavior until the extension is upgraded, which can happen when upgrading the project's PostgreSQL version.
  • Previously, __schema and __type worked without configuration. Starting in 1.6.0, they return errors unless introspection is enabled, such as Unknown field "__schema" on type Query. Operations such as accountCollection and insertIntoAccountCollection continue to work normally.

Tooling dependencies and per-schema opt-in

  • Supabase Studio's GraphiQL uses introspection to display the schema and provide autocomplete. External GraphiQL, GraphQL Playground, Apollo DevTools, the Relay compiler, and code generators such as graphql-codegen also need introspection enabled when they rely on it.
  • Configure each database schema separately. For public, run comment on schema public is e'@graphql({"introspection": true})';. If the schema comment already configures a key such as inflect_names, merge introspection into the same comment rather than dropping the existing key.
  • Introspection exposes the full API surface, including types, fields, and relationships, to anyone who can reach the endpoint. Disabling it by default reduces API enumeration risk.
Source: Supabase Database Changelog· supabase.com

PG Radar summarizes verified changes and impact. Read the original post for full technical details and code samples.

Read Official Source

Related PostgreSQL Reference