January 2021 Summaries
13 posts from Hasura
Filter
Month:
Year:
Post Summaries
Back to Blog
Hasura has released version 1.4.0.alpha.1 with a variety of new features and improvements. This release includes support for multiple Postgres sources, metadata separation, REST endpoint support, volatile functions as mutations, remote schema permissions, and heterogeneous execution. The purpose of this alpha release is to gather user feedback and bug reports before the final version is released. Users are encouraged to test the new features and provide their perspectives on the Hasura Community Discord or Github Discussions.
Jan 29, 2021
463 words in the original blog post.
In this tutorial, we learn how to use Hasura Events to create an e-commerce shopping cart reminder. First, we set up a Hasura account and make the endpoint available to "public_user" role. Next, we create the users_wishlist table in Hasura with specific fields and permissions for the "public_user" role. Then, we configure the React app to connect to Hasura using Apollo Client or any other GraphQL client. After that, we launch a mutation query and save user preferences. Next, we create an event trigger called "send_wishlists" linked to the schema "public" and table "users_wishlist" on the "Insert" trigger. We then pass a Webhook URL that will be invoked from our Hasura server when this event happens. Finally, we create a serverless function to send an email reminder to the user using an external provider like Emailjet. This application allows users to receive shopping cart reminders without needing to develop custom triggers or watchers, saving time and increasing developer productivity.
Jan 29, 2021
984 words in the original blog post.
The text discusses automated schema migrations using the Hasura CLI tool and provides an example of creating a database schema. It outlines why good practices should be set around schema migrations and highlights the importance of keeping each migration to a singular step, such as table creation or column addition. The author also explains how to create the first schema migration, including setting up the configuration file and executing the migration against the Hasura instance. Finally, it mentions that in part 3, they will cover adding relationships between tables and other schema changes using the console itself.
Jan 28, 2021
1,551 words in the original blog post.
JungleJS is a static site generator that enables developers to build fast and lightweight static sites using Svelte and GraphQL. It works by pulling data from various sources such as JSON, CSV files, headless CMS, or APIs like WordPress and Ghost. The GraphQL Data Layer in JungleJS serves as temporary storage for imported data, converting it to static data at build time. JungleJS is similar to other frameworks like Sapper and Nuxt in terms of folder structure. It allows developers to create components, pages, and link routes, and supports styling using the svelte syntax. Deployment can be done through hosting services such as Netlify or GitHub.
Jan 28, 2021
1,451 words in the original blog post.
In this blog post, the author explores using TimescaleDB 2.0 alongside Hasura and discusses their experience with setting up a multi-node feature in TimescaleDB 2.0. The multi-node feature allows for creating a cluster of TimescaleDB instances to scale both reads and writes. The author shares the infrastructure setup, authentication mechanisms, and how to create distributed hypertables. They also discuss performance comparison between non-distributed and distributed hypertables, foreign key and relationship handling, continuous aggregate views, SQL functions, triggers, and caveats of using distributed hypertables. Lastly, they mention running with Hasura GraphQL Engine and the need for manual relationship definition due to foreign keys not working on a distributed hypertable.
Jan 22, 2021
1,688 words in the original blog post.
The Hasura Metadata SDK is a collection of type definitions for Hasura metadata in various programming languages. It aims to enhance user experience by providing a platform for building complex tooling and programmatic workflows around interacting with metadata, as well as offering enhanced integration for maintaining flow-state while working in editor environments on Hasura projects. The SDK includes pre-generated SDKs for TypeScript, Python 3.7 Dataclasses + MyPy, Golang, and Haskell. Users can also generate definitions in other languages if their preferred language is not readily available.
Jan 21, 2021
667 words in the original blog post.
The third edition of GraphQL Asia, Asia's largest gathering of GraphQL enthusiasts, will take place online on February 24th and 25th, 2021. Tickets are free and can be registered for here. The event has added two more in-depth workshops and eleven new speakers to its lineup. Some of the talks include "Monorepo development using Hasura role and GraphQL Code Generator," "Intelligent Caching with GraphQL Gateway using CDC," and "GraphQL & Microservices - the different approaches & challenges." More information about the event can be found on the GraphQL Asia homepage.
Jan 21, 2021
222 words in the original blog post.
Hasura introduces an advanced tutorial as part of their #GraphQLJanuary campaign. The tutorial is aimed at users who need to optimize their applications for production use cases and covers topics such as implementation best-practices. This course follows the highly trafficked basic GraphQL tutorials on the website, which have been instrumental in helping many people learn about GraphQL and explore Hasura's offerings. The advanced tutorial is MIT-licensed and open to feedback, participation, and pull requests. It will be live-streamed over the upcoming weeks on Hasura's Twitch channel, with recordings available later on their YouTube channel.
Jan 18, 2021
316 words in the original blog post.
The New Data Fabric is a concept that emphasizes the importance of higher-level services and abstraction in all layers of the tech stack. It highlights how programming languages are becoming more data-friendly, and data services are increasingly being defined by new APIs like GraphQL. This shift from three-tier application models to two-tier ones with rich interactive frontends orchestrating backend services is driving innovation in data management. The Enterprise GraphQL Conference discussed the role of GraphQL in improving performance, predictability, portability, control, and maintainability. It also highlighted the need for a platform team creating rich services that are consumed by developers, promoting separation of concerns. This concept encourages developers to focus on their respective areas of expertise, leading to more efficient and innovative solutions.
Jan 15, 2021
598 words in the original blog post.
This article discusses the use of TimescaleDB 2.0 alongside Hasura and explores what works and doesn't when using these two technologies together. It highlights that while TimescaleDB is a PostgreSQL extension, there are several limitations to consider when integrating it with Hasura. The author shares their experience with migration from version 1 to 2.0 of TimescaleDB, noting the renaming of functions and SQL syntaxes as well as changes in view structures. They also discuss the new features introduced in TimescaleDB 2.0 such as scheduled jobs and multi-node scaling. The author highlights limitations when using TimescaleDB with Hasura, including issues related to creating materialized views, working with graphql, and using the console and Hasura CLI. Despite these challenges, the author recommends upgrading to TimescaleDB 2.0 for its multi-node scaling solution.
Jan 14, 2021
1,394 words in the original blog post.
GraphQL Asia is an upcoming online conference on February 24-25, focusing on discussions about GraphQL in Asia. The event will feature talks in multiple Asian languages and pre-recorded sessions for flexibility. Four talks have been announced so far, including "The State of GraphQL" by Tanmai Gopal from Hasura and Dan Schafer from Facebook. Additionally, three workshops are listed, with more updates expected soon. Registrations are open, and the event is part of #GraphQLJanuary, which includes various activities and resources for the community.
Jan 13, 2021
360 words in the original blog post.
In 2020, Hasura experienced significant growth and development. Key milestones included the release of v1.0.0 Stable in January, Series A funding and GraphQL Asia in February, migration to TypeScript in March, #ActionPackedApril with custom mutations called Actions, Scheduled Triggers in May, HasuraCon 2020 and Hasura Cloud Released in June, v1.3.0 Stable in July, a PDV Refactor Server in August, Series B funding in September, an Enterprise GraphQL Conference in October, the start of Office Hours, Webinars, Streams, and Livestreams on Twitch in November, and regions, HIPAA, SOC2 Type 1 compliance in December. Looking forward to 2021, Hasura promises more exciting developments such as roles, remote schema permissions, generalised remote joins, actions permissions, relay updates, and support for multiple databases.
Jan 12, 2021
1,130 words in the original blog post.
In a blog post titled 'GraphQL January with Hasura', plans for a month-long focus on learning, expanding and exploring GraphQL were shared. The Hasura community team will be hosting live Q&A sessions in the #general channel of their Discord server weekly on Wednesdays. They will also share content via Twitter, LinkedIn, Facebook, Twitch, Youtube, etc. For those new to GraphQL, helpful resources can be found at hasura.io/graphql. The goal of Contributor Days is to provide a voice for anyone using GraphQL and facilitate dialog between the community and core contributors.
Jan 11, 2021
529 words in the original blog post.