36th alpha release for v1.0.0
Pre-releaseChangelog
🚨 🚨 We have identified issues with the upgrade to this release if there are insert permissions defined. We are investigating the issue.
The bug is now fixed in v1.0.0-alpha37
. Please skip this version and upgrade to the latest version instead.
🎁 New Features 🎁
-
PostgreSQL functions that return tablesets can now be queried via GraphQL (close #333) (#1073).
Example - Building a search function for articles:- Create a function from SQL window on console and track it:
CREATE FUNCTION search_articles(keyword TEXT) RETURNS SETOF article AS $$ SELECT * FROM article WHERE title ILIKE ('%' || keyword || '%') or content ILIKE ('%' || keyword || '%') $$ LANGUAGE SQL STABLE;
- GraphQL Engine generates the following query type:
search_articles ( args: search_articles_args! where: artcle_bool_exp order_by: [article_order_by!] limit: Int offset: Int ): [article!]! input search_article_args { keyword: String! }
- Now, search through articles via GraphQL:
query searchArticles { search_articles( args: {keyword: "Hasura"} ){ id title content author_id } }
- Create a function from SQL window on console and track it:
-
Event trigger payload now contains
session_variables
which has all thex-hasura-*
variables present in the context of the event. (close #1328) (#1458) -
Remote schemas now supports default values for input types. (close #1491) (#1493)
-
Union
andInterface
types are now supported in Remote Schema. (close #1276) (#1361) -
JSONB
and PostGIS operators are now supported in permissions, console changes are pending. (track #1503) (#1461) -
While creating a relationship, console now auto-fills a generated name. (closes #1095) (#1437)
-
Analyze SQL on the console now works for all roles. (close #1457) (#1459)
-
Simplifies SQL generation for
_eq
and_neq
operators in GraphQL API (#1466) -
Adds anonymous telemetry data collection to server, cli and console. The data collected is minimal, statistical in nature and cannot be used to uniquely identify a user. To understand what data is collected and for instructions to opt-out, head to docs. (#1401)
🐛 Bug Fixes 🐛
- Fixes a bug that caused values to be set as
NULL
if they were not passed in the variables for_set
update operator. (close #1448) (#1475) - Remote schemas can now handle scalars separately from Hasura scalars. This finally enables merging multiple Hasura schemas under one Hasura instance. (fix #1244) (#1497)
- Fixes a bug on server that caused un-tracking tables to fail in certain cases where there are relationships defined on it. (close #1441) (#1442)
- Fixes a bug that caused console to create incorrect down migration for delete_event_trigger action. (close #1390) (#1391)
- Fixes a console bug that caused modifying event trigger options to fail. (#1465)
Other changes
- modify contributing guides for docs, cli, server console and community (#1427) (close #1370) (#1414) (#1412)
- server: test jwt with invalid signtaure and expired token (#1492)
- console: reuse buttons across console for uniformity (#1400)
- console: console ui fixes (#1455)
- console: change json field placeholder from 'asdf' to 'bar' (close #1260) (#1261)