Hasura's Guide to GraphQL
Written by Nikos Vaggalis   
Friday, 19 July 2019

Hausura has provided a mini course on the basics of GraphQL which will be of interest to anyone who want to get to grips with the open source Graph QL engine.

Hasura's main product is its Postgres backed GraphQL server, which sports features such as webhook triggers on database events and remote schemas. (As a side note if you are interested in the concept of database events, then you might want to check out Connecting To The Outside World with Perl and Database Events.) 

In order to use Hasura's engine it's obvious that you first have to be familiar with GraphQL. So to make migrating to its product easier Hasura has prepared a mini course on GraphQL's basics and kindly made it available for free to everyone. So, interested in Hasura's platform or not, you can still enjoy this quick 2-hour long tutorial.

The topics covered are :

  • GraphQL vs REST

  • GraphQL queries, mutations, subscriptions

  • Setting up a GraphQL client with Apollo

  • Integrating GraphQL queries in your react native app

  • Integrating GraphQL mutations in your app to change data on the server

  • Updating local state after a GraphQL mutation (TextInput) using Apollo cache

  • Automatic updates to local state and UI after mutations

  • Using subscriptions with subscription components

  • Building a real-time feed with notifications using mutations and subscriptions

Theory aside, and despite its short time, the course also manages to squeeze in building a realtime todo app using authenticated GraphQL APIs.

Yet again, despite basing on a boilerplate UI built with React Native, the course does not teach React, prefering to remain focused solely on GraphQL. While you can pick up React Native easily if you're already familiar with React development for the web, if you want more help with React development, combined with REST, Node and GraphQL, look no further than University of Helsinki's "Full Stack Open" which, as recently reported, has just been released in English too!

If after completing Hasura's mini course, you want to explore further then you can find the underlying GraphQL engine, which is open source of course, available on Hasura's github repo, as well as another tutorial, this time on the backend that the React native app used in the course is based upon.

More Information

Hasura's GraphQL/React native course 

Hasura

Related Articles

Finland's "Full Stack Open" Now Available in English

Connecting To The Outside World with Perl and Database Events

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Azul Outperforms OpenJDK By Up To 37%
23/10/2024

Azul has announced that its Azul Platform Prime outperforms comparable OpenJDK distributions by as much as 37%. The company has also launched the Azul Java Performance Engineering Lab (JPEL) aimed at  [ ... ]



JetBrains Improves Kubernetes Support In IDE Upgrades
12/11/2024

JetBrains has improved its IDEs with features to suggest the logical structure of code, to streamline the debugging experience for Kubernetes applications, and provide comprehensive cluster-wide Kuber [ ... ]


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info