github hasura/graphql-engine v2.1.0-beta.2

latest releases: v2.36.8, cli/v2.36.8, cli/v2.44.0-beta.1...
pre-release2 years ago

Changelog

Highlights

Action transforms

Action transforms are used to perform arbitrary transformations to the HTTP request generated by an action.
This allows you to connect REST APIs and other existing APIs without writing any middleware/wrapper service.

You can transform the request method and the URL:

request-options-transformation1

You can also transform the request body:

example-transformation-21

Read more in the docs.

SQL Server Insert Mutations

Insert mutations for SQL Server are now supported. Other mutations will follow soon.

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. This can be done via *_add_source API and console support will be released soon.

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.

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
  • 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
  • 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)

Don't miss a new graphql-engine release

NewReleases is sending notifications on new releases.