Changelog
This is a patch release for v2.51.
Bug fixes and improvements
Server
- Fix a quadratic slowdown in the number of fields in a selection set during graphql query parsing. (Thanks to Lorenzo for discovering this and offering a fix in #10886)
- Fix allow list normalization to properly remove
__typenamefrom inline fragments - Breaking (server): Hasura no longer imports PostgreSQL
COMMENTs on tables, columns and functions into the GraphQL schema for Postgres-family sources (PostgreSQL, Citus, CockroachDB). Table/column descriptions and computed-field descriptions (which were inherited from the backing function'sCOMMENT) now come only from Metadata (configuration.comment/configuration.column_config/ computed-fieldcomment). Upgrade Hasura CLIv2.51.1and runhasura metadata codemod migrate-postgres-commentsto migrate SQL comments to metadata. - Automatically retry loading of inconsistent remote schemas.
HASURA_GRAPHQL_REMOTE_SCHEMA_HEALING_INTERVAL=0disables this new behavior. Retries will happen starting everyHASURA_GRAPHQL_REMOTE_SCHEMA_HEALING_INTERVAL(by default 5000ms) with backoff until we loop every 2 minutes, forever.
Console
- Rewrite and modernize the Hasura Console across Community and Enterprise editions, consolidating database-management workflows and navigation, upgrading API Explorer to GraphiQL 5, remove Redux, and adding a persistent light/dark appearance preference.
CLI
hasura initnow generates a rootAGENTS.mdguide for CLI config v3 projects, documenting the multi-source project structure, metadata/migration workflow, and console-free validation/application steps for coding agents. ExistingAGENTS.mdcontent and other existing paths are preserved; config v2 projects are unaffected.- Fix the URL prefix used by
hasura consoleby removing the hardcoded/consolepath from the CLI's Console configuration. Developers using an older CLI version must add/consoleto the URL path when opening the Console.
New (cli): hasura metadata codemod migrate-postgres-comments migrates existing database table, column, computed-field and tracked-function comments into local Metadata (configuration.comment / column_config / computed-field comment / function top-level comment). It reads the database catalogs, writes only local metadata files, and supports --dry-run and --source. Migrate with hasura metadata codemod migrate-postgres-comments followed by hasura metadata apply.
# Preview (writes nothing):
hasura metadata codemod migrate-postgres-comments --dry-run
# Migrate all Postgres-family sources into local metadata:
hasura metadata codemod migrate-postgres-comments
# A single source:
hasura metadata codemod migrate-postgres-comments --source default
# Review the diff, then push to the server:
hasura metadata applyData Connector
- Fixed an issue in the Snowflake data connector where selecting multiple relationships targeting the same table, including nested relationships and repeated selections under different GraphQL aliases, could return incorrect results or unexpectedly null relationships.
Build
- Refresh the Ubuntu packaging base image to pick up the OpenSSL security update for CVE-2026-84782.