Breaking change in pg_graphql 1.6.0 — GraphQL introspection disabled by default #46320
utkarash2991
announced in
Changelog
Replies: 2 comments
-
|
Date update — rollout moved from 2026-06-15 to 2026-06-29. Pushed by 2 weeks to allow additional AMI build verification. No other changes — the opt-in SQL, who's affected, and what's changing all remain the same. The original post has been updated with the new date. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We had some hiccups yesterday but we're back on the release train. This new version and behavior will be available on the next platfrom deploy. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Starting with pg_graphql 1.6.0 (shipping in new Supabase projects from 2026-06-29), GraphQL introspection is disabled by default.
Who is affected
What's changing
Previously,
__schemaand__typequeries worked without any configuration. From 1.6.0, they return an error unless you explicitly opt in:{ "errors": [{ "message": "Unknown field \"__schema\" on type Query" }] }If your project uses any of the following, you'll need to opt in before relying on introspection:
graphql-codegen)__schemaor__typedirectlyRegular data queries are not affected.
accountCollection,insertIntoAccountCollection, etc. continue to work normally regardless of this setting.How to opt in
Run this SQL once per schema you want to expose introspection on:
If you already have a comment on your schema (e.g. for
inflect_names), combine the keys:Why this change
Introspection exposes your full API surface — all types, fields, and relationships — to anyone who can reach the endpoint. Disabling it by default reduces the risk of API enumeration and makes it easier to keep private schemas private.
Further reading
Beta Was this translation helpful? Give feedback.
All reactions