February 2021 Summaries
10 posts from Hasura
Filter
Month:
Year:
Post Summaries
Back to Blog
Hasura has released GraphQL Engine 2.0, a significant update that is entirely backward compatible with Hasura 1.x. The new version includes support for connecting multiple databases simultaneously and database generalization, allowing users to create idiomatic REST endpoints based on GraphQL templates. Additionally, the authorization engine has been enhanced, and features related to high availability and distributed operations have been added.
Feb 23, 2021
2,098 words in the original blog post.
In this article, we explore the top three resources for Vue.js developers to learn and implement GraphQL in their projects. These include GraphQL clients such as Apollo client, urql, SWRV, Fluent GraphQL clients, and Villus; authentication methods like JWT-based authentication with Vuex and Vue-router or third-party solutions like Auth0 and Firebase; and data fetching modes including server-side rendering with Nuxt.js and statically generated sites using Gridsome.
Feb 18, 2021
817 words in the original blog post.
This article explores various caching technologies and approaches that can be used with GraphQL. It introduces the concept of cache as a hiding place for concealing and preserving items, and highlights its purpose in taking load off other elements of a system to improve performance. The text discusses different types of cache such as web cache, database cache, client cache, server cache, CDN, reverse proxies, web accelerators, key/value store, HTTP/network level cache, and cache servers like MemCache, ElastiCache, Redis etc. It also explains the reasons for implementing a cache, including improving application performance, reducing load on databases, managing IOPs, session management, and API caching. The article concludes by mentioning Hasura's approach to caching via Hasura Cloud, which provides query response caching in its Standard tier.
Feb 17, 2021
994 words in the original blog post.
This article provides a comprehensive guide to developing an Angular app with GraphQL, Amazon RDS, and Hasura. It covers the following key points:
1. Introduction to GraphQL: The article explains that GraphQL is a query language for APIs and server-side runtimes for executing queries using existing data.
2. Setting up an Angular app with Apollo Client: The author demonstrates how to set up an Angular application with the Apollo Client, which is a fully featured client for managing GraphQL on the frontend.
3. Creating a new Amazon RDS instance: The article guides users through creating a new Amazon RDS instance and connecting it to their Angular app using Hasura.
4. Setting up Hasura: The author explains how to set up Hasura, an open-source engine that connects to your databases and microservices with built-in features like instant GraphQL APIs, access control, and caching.
5. Connecting Angular app to Amazon RDS using Apollo Client: The article demonstrates how to connect the Angular app to the Amazon RDS instance using the Apollo Client.
6. Creating a new Hasura project: The author guides users through creating a new Hasura project and connecting it to their Amazon RDS instance.
7. Setting up GraphQL schemas in Hasura: The article explains how to set up GraphQL schemas in Hasura, which allows developers to define the structure of their data and the operations that can be performed on it.
8. Testing the Angular app with GraphQL queries: The author demonstrates how to test the Angular app by sending GraphQL queries to the Amazon RDS instance through Hasura.
Overall, this article provides a detailed guide for developers looking to build an Angular app with GraphQL, Amazon RDS, and Hasura.
Feb 15, 2021
999 words in the original blog post.
This tutorial guides users through setting up authentication with Django Graphene and Hasura GraphQL. It covers creating a simple GraphQL authentication service using Django Graphene, merging it into the Hasura service, and testing sample requests. The project is set up using Docker Compose, which automatically applies Hasura metadata and SQL migrations from the ./hasura folders. The tutorial also explains how to extend the user model in Django, create schema functions, and tie everything together for use with Hasura GraphQL Engine.
Feb 11, 2021
2,219 words in the original blog post.
In this tutorial, we explore building a GraphQL API backend with Deno and creating a unified GraphQL layer with Hasura to solve custom business logic requirements of an app. We begin by discussing what Deno is - a runtime for JavaScript (and TypeScript) that is secure by default, ships only a single executable, uses the V8 engine, and is written in Rust. We then delve into setting up a GraphQL server with Deno using Oak framework and the GraphQL middleware oak-graphql to create an endpoint. Next, we define GraphQL schema with type definitions and resolvers for operations such as fetchUser and insertUser. Finally, we discuss packaging and deployment of Deno with Docker, local dev with ngrok, deploying Hasura to get a GraphQL API, adding the Deno server as a remote schema, establishing remote relationships, and using Deno Server as a Hasura Action handler.
Feb 10, 2021
1,371 words in the original blog post.
This tutorial guides developers on how to implement a custom JWT solution with Next.js using next-auth and integrate the same with Hasura for authenticated GraphQL API calls. It covers cloning the official example app, configuring it, deploying Hasura to get a GraphQL API, creating a table users, generating secret keys, signing in with GitHub, encoding JWTs, decoding JWTs, adding user ID to tokens, and using session information with Server Side Rendering. The tutorial also provides links to the GitHub repository and YouTube video for further reference.
Feb 04, 2021
1,233 words in the original blog post.
In this article, the author discusses high availability solutions for TimescaleDB 2.0 in conjunction with Hasura. The author explores single-node and multi-node replication setups, highlighting their respective benefits and limitations. Single-node replication is achieved using streaming replication combined with repmgr or Patroni for automatic failover, while multi-node replication is supported natively in TimescaleDB 2.0 but is still under development. The author also mentions the use of Kubernetes, Timescale Cloud, and Timescale Forge as options for deploying highly available clusters. Additionally, the article touches on caveats such as data latency between master and replicas in single-node setups and schema sync issues in multi-node setups. The author concludes by recommending Hasura Cloud to leverage read replica power and encourages readers to stay updated with Hasura's blog and events for new plans and demos.
Feb 03, 2021
1,137 words in the original blog post.
This article provides a comprehensive guide on how to develop an Angular app with GraphQL, Amazon RDS, and Hasura. It covers the setup process for each component, including installing necessary dependencies, creating databases, setting up serverless functions, and configuring authentication. The author also discusses various strategies for handling data models, business logic functions, and access control policies. Additionally, the article provides code examples and a working application source code link to help developers understand and implement these concepts in their projects.
Feb 02, 2021
4,617 words in the original blog post.
This article discusses schema migrations using Hasura Console, a graphical interface for automating the build-out of database migrations. The author provides step-by-step instructions on how to add relationships and new tables using the console. They also emphasize the importance of an additive-only approach to schema migration changes in a database, which ensures data integrity and reduces conflicts in table structure when making changes.
Feb 01, 2021
902 words in the original blog post.