Hasura v2.1.0-beta.2 Release Notes

  • Action transforms

    Action transforms are used to perform transformations on the HTTP request generated by an action. This allows you to integrate REST APIs or existing APIs without writing a middleware service that transforms the action's request to the one expected by the API.

    ๐Ÿ“„ Read more in the docs.

    Function field names customization (#7405)

    It is now possible to specify the GraphQL names of tracked SQL functions in Postgres sources, and different names may be given to the _aggregate and suffix-less versions. Aliases may be set by both /v1/metadata/pg_track_function and the new API endpoint /v1/metadata/pg_set_function_customization.

    Root field name and type name customization per source (#6974)

    ๐Ÿ›  When adding a source it is now possible to specify prefixes and suffixes that will be added to all root field names and type names generated for that source. It is also possible to specify a root "namespace" field to use for the source.

    ๐Ÿ› Bug fixes and improvements

    • ๐Ÿ“‡ server: do not recreate event triggers if tables haven't changed on reloading metadata
    • server: moves request_transform into the Action Definition the create_action metadata API call.
    • ๐Ÿ“œ server: call auth webhooks even when the request is malformed JSON or otherwise fails to parse (close #7532)
    • โšก๏ธ server: updates kriti to v0.2.1 which adds an escapeUri function
    • โš™ server: add cascade option to mssql_run_sql metadata API
    • server: fix bug which recreated event triggers every time the graphql-engine started up
    • server: fix bug in OpenAPI when multiple REST endpoints have the same URL path but different method
    • ๐Ÿ‘ server: add support for GraphQL block strings
    • server: Correctly translate permissions on functions to SQL (#7617)
    • server: add transformed request to action error responses
    • server: allow nullable action responses (#4405)
    • ๐Ÿ‘ server: add support for openapi json of REST Endpoints
    • 0๏ธโƒฃ server: enable inherited roles by default in the graphql-engine
    • ๐Ÿ‘ server: support MSSQL insert mutations
    • server: fix bug in OpenAPI when multiple REST endpoints have the same URL path but different method
    • server: forward Set-Cookie headers from auth webhook
    • console: design cleanup Modify and Add Table forms (close #7454)
    • console: enable custom graphql root fields for mssql under modify tab
    • console: allow dropping indices on all schemas
    • console: fix bug with displaying 1-to-1 relationship with the same column mapping (close #7552)
    • console: add request transforms for actions
    • ๐Ÿ“‡ console: fix v2 metadata imports
    • console: design cleanup Modify and Add Table forms (close #7454)
    • console: enable custom graphql root fields for mssql under modify tab
    • ๐Ÿ“‡ cli: split remote schema permissions metadata into seperate files (#7033)
    • ๐Ÿ“‡ cli: support action request transforms in metadata
    • cli: make --database-name optional in migrate subcommands when using a single database (#7434)
    • ๐Ÿ‘ cli: support absolute paths in --envfile (#5689)
    • ๐Ÿ“‡ cli: split remote schema permissions metadata into seperate files (#7033)