<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rishichandra Wawhal on Medium]]></title>
        <description><![CDATA[Stories by Rishichandra Wawhal on Medium]]></description>
        <link>https://medium.com/@rishichandrawawhal?source=rss-aa6dcd62795------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8BI3TNI8rRniT5JZ.</url>
            <title>Stories by Rishichandra Wawhal on Medium</title>
            <link>https://medium.com/@rishichandrawawhal?source=rss-aa6dcd62795------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:27:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rishichandrawawhal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Common access control patterns with Hasura GraphQL Engine]]></title>
            <link>https://medium.com/@rishichandrawawhal/common-access-control-patterns-with-hasura-graphql-engine-c77af7f92be?source=rss-aa6dcd62795------2</link>
            <guid isPermaLink="false">https://medium.com/p/c77af7f92be</guid>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Rishichandra Wawhal]]></dc:creator>
            <pubDate>Thu, 23 May 2019 17:41:55 GMT</pubDate>
            <atom:updated>2019-05-23T18:30:48.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FVXo5tP8QyVRGjUI.png" /></figure><h3>Introduction</h3><p>In this post, we will look at some access control patterns that can be used with <a href="https://hasura.io/">Hasura</a> to granularly allow/restrict the data. This is a summary blog post from <a href="https://twitch.tv/hasurahq">Hasura Streams</a> and the video has been uploaded to <a href="https://www.youtube.com/hasurahq">Youtube</a>. If you prefer watching, similar examples have been covered in this video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwrBOKlVG69A%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwrBOKlVG69A&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwrBOKlVG69A%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0570993760af188a4de666886bf13413/href">https://medium.com/media/0570993760af188a4de666886bf13413/href</a></iframe><h3>Hasura GraphQL Engine</h3><blockquote><a href="https://github.com/hasura/graphql-engine"><em>Hasura GraphQL Engine</em></a><em> is a thin GraphQL server that sits on any Postgres database and allows you to CRUD the data with realtime GraphQL and access control.</em></blockquote><p>This post assumes that you have basic understanding of Hasura and relational data models. <a href="https://docs.hasura.io/1.0/graphql/manual/getting-started/index.html">Check out this guide</a> if you have never used Hasura before.</p><p>Hasura enables role based access control which can be integrated with most Auth providers. The access control rules in Hasura are functions of <strong>session variables</strong>. Session variables are x-hasura-* variables like x-hasura-role, x-hasura-user-id that can be decoded from the request headers of the GraphQL request. You could have any number of session variables to make the rules more granular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*PZ5raaNmMTnM6LsG.png" /></figure><p>Let us see how to set up access control rules as functions of these session variables. Hasura infers the GraphQL schema from the Postgres schema, which means that setting access control rules on the tables, columns and their relationships corresponds to setting access control rules on the fields of your GraphQL schema.</p><h3>Permissions</h3><p>The access control rules are referred to as Permissions in the Hasura console. When you go to any table, you can see a permissions tab for that table where you can set permissions.</p><p><strong>UI</strong></p><p>The Hasura console has a neat UI for setting permissions. It also has a filter-builder that will make building filters and checks very joyful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CjHYU_TZqHW6JcGZ.png" /></figure><p><strong>Roles</strong></p><p>With each GraphQL request made to it, Hasura checks the role of the client user in the session variable x-hasura-role. Looking at this role, Hasura looks for the permissions for this role and allows or restricts CRUD accordingly.</p><blockquote><em>The roles in Hasura have nothing to do with the Postgres roles and users. These roles are implemented at the Hasura Layer.</em></blockquote><p>You can define these roles in the Hasura console and there is no limit on multiple roles being defined.</p><p><strong>Insert Permission</strong></p><p>The permissions to insert rows in a table is composed of three parts:</p><ul><li>Check constraint: This is a boolean value built out of session variables, values of the fields of the row being inserted and all the logical operators. For example, to insert into users table, you want to set a condition like { &quot;id&quot;: { &quot;_eq&quot;: &quot;x-hasura-user-id&quot; } }. This condition enforces that whenever a row is being inserted to the users table, it can only be inserted if the id of the row is equal to the x-hasura-user-id value in the session variables.</li><li>Columns: You can restrict insertion to only particular columns (rest of them being null, default or being inferred from column presets)</li><li>Column Presets: Column presets are values that you can set to be assigned to fields while they are being inserted. For example, when an entry is being inserted in a users table, we can take the id from x-hasura-user-id session variable. This helps to avoid parsing the session information on the client.</li></ul><p><a href="https://blog.hasura.io/access-control-patterns-with-hasura-graphql-engine/">Read more …</a></p><p><em>Originally published at </em><a href="https://blog.hasura.io/access-control-patterns-with-hasura-graphql-engine/"><em>https://blog.hasura.io</em></a><em> on May 23, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c77af7f92be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an image processing app with GraphQL and async serverless]]></title>
            <link>https://medium.com/@rishichandrawawhal/building-an-image-processing-app-with-graphql-and-async-serverless-cd43c752b2ee?source=rss-aa6dcd62795------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd43c752b2ee</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[image]]></category>
            <dc:creator><![CDATA[Rishichandra Wawhal]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 06:36:49 GMT</pubDate>
            <atom:updated>2019-03-26T11:29:01.901Z</atom:updated>
            <content:encoded><![CDATA[<h4>Here’s how I used GraphQL to build an image processing app that converts an image to sepia asynchronously</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*7lOTO7AwhNzaQhAJ.gif" /></figure><h3>TL;DR</h3><ul><li>Image processing is best done asynchronously so that the state is not lost when the app is refreshed</li><li>Serverless functions can be used to run the image processing logic</li><li>Realtime GraphQL helps you be in sync with the processing state</li><li><a href="https://github.com/hasura/graphql-engine">Hasura GraphQL Engine</a> gives instant realtime GraphQL APIs over Postgres</li><li>Source code: <a href="https://github.com/wawhal/image-processing-app/tree/master/client">client</a>, <a href="https://github.com/wawhal/image-processing-app/tree/master/image-processing-logic">image processing logic</a></li></ul><h3>Introduction</h3><p>In this post we’ll build a basic image processing app that lets you upload an image and add a sepia tone to it asynchronously. We will not go into the code subtleties as this is more of a philosophical rant about how async image processing apps can be built using realtime GraphQL and serverless.</p><p>We’ll use:</p><ul><li><a href="https://github.com/hasura/graphql-engine">Hasura GraphQL Engine</a> as a free realtime GraphQL server over Postgres.</li></ul><blockquote><em>Hasura gives you realtime GraphQL APIs over any Postgres database</em></blockquote><ul><li>An event sourcing system to trigger external webhooks on mutations</li></ul><p><strong>Prerequisites</strong></p><ul><li>Knowledge of consuming a GraphQL API</li><li>Knowledge of some front-end framework. An example is given with ReactJS, but you could use anything.</li></ul><h3>Architecture</h3><p>This app follows the <a href="https://3factor.app/">3factor.app</a> architecture pattern. 3factor app is an architecture pattern for resilient and scalabale fullstack apps. It involves:</p><ul><li>Realtime GraphQL</li><li>Reliable Eventing</li><li>Async serverless</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6N4g2IL-7fRLNUb_.png" /><figcaption>Older architecture vs 3factor architecture</figcaption></figure><p>In case of our image processing app, the flow of the application would be:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/0*N8AiYg_KjH6TqTNJ.jpg" /></figure><ol><li>The client uploads the image to cloud and inserts the image URL into the database with a GraphQL mutation. The client then watches the changes in the database for that particular image with GraphQL subscriptions.</li><li>When the image URL has been inserted in the database, Hasura’s event system calls an external webhook with the image details</li><li>The external webhook converts the image to sepia tone, uploads the converted image to cloud and updates the database with the converted image URL</li><li>The client receives the update when the converted image has been uploaded to the database (GraphQL subscriptions)</li></ol><h3>Backend</h3><p>First step is to get a realtime GraphQL server running in the form of <a href="https://github.com/hasura/graphql-engine">Hasura GraphQL Engine</a>.</p><p><a href="https://heroku.com/deploy?template=https://github.com/hasura/graphql-engine-heroku">Click here to deploy it to Heroku’s free tier with free Postgres (no credit card required).</a></p><h3>Data model</h3><p>We need only one table for this app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*SvTYXXj7kS3pFlns.png" /></figure><p>When you create this table called images, Hasura provides the following root fields in its GraphQL schema:</p><ul><li><strong>images: </strong>To query or subscribe to the list of messages (comes with clauses such as where, order_by, limit)</li><li><strong>insert_images: </strong>To insert one or more images into the images table</li><li><strong>update_images: </strong>To update one or more images in the images table</li><li><strong>delete_images: </strong>To delete one or more images in the images table</li></ul><h3>Image processing logic</h3><p>We need our image processing logic that takes our uploaded image and adds a sepia tone to it. This could be written in any language or framework and deployed on any platform. For example, in NodeJS, you can write this logic using JIMP and serverlessify it using <a href="https://zeit.co/">Zeit</a>. Pseudo code looks something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6ba106f26aaa19919447734705f4387e/href">https://medium.com/media/6ba106f26aaa19919447734705f4387e/href</a></iframe><p>The above function simply takes an object of the following form, converts it to sepia and stores the converted image at /tmp/&lt;id&gt;.png.</p><pre>{<br>    &quot;id&quot;: 233,<br>    &quot;image_uri&quot;: &quot;https://mycloudbucket.com/image&quot;<br>}</pre><p>Once the image has been converted, you also want to update the converted image URI to the database.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e800ad365bc7bcff9944745dc46f95d5/href">https://medium.com/media/e800ad365bc7bcff9944745dc46f95d5/href</a></iframe><h3>Event sourcing</h3><p>Hasura lets you define event triggers that listen on mutations and invoke an external webhook with the mutation data. We will create one such event trigger that listens on insert_images mutation and calls the webhook that performs the logic discussed above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*hes69sUWb1zkKON8.png" /></figure><p>With this, our backend is ready.</p><h3>Frontend</h3><p>Most of the logic happens on the backend, so the front-end stays fairly clean. The front-end has two screens:</p><ul><li>Upload screen: Uploads image to cloud, inserts the image URL in the database and redirects to the Convert screen with URL param id=&lt;image_id&gt;</li><li>Convert screen: Waits for the image to get processed and shows the converted image</li></ul><h3>Upload screen</h3><p>This screen does the following:</p><ul><li>Takes image from user</li><li>Uploads image to cloud</li><li>Inserts this image in the database with GraphQL mutation</li><li>Redirects to the new screen with URL parameter id=&lt;image_id&gt; where image_id is the unique id of the inserted image</li></ul><p>The GraphQL mutation for inserting the image to the database looks like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b706f775223e45c723b267230f5fb876/href">https://medium.com/media/b706f775223e45c723b267230f5fb876/href</a></iframe><p>The above mutation inserts the image URI to database and returns the id of the inserted row. Next, you redirect to the Convert screen where you wait for the processed image.</p><h3>Convert screen</h3><p>In the convert screen, you look at the id of the image in URL parameters and make a live query to the database with GraphQL subscriptions. The subscription looks like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bf4a44bd985aa8cebc87195dbfdf0498/href">https://medium.com/media/bf4a44bd985aa8cebc87195dbfdf0498/href</a></iframe><p>While rendering the UI, you would check if the received converted_image_uri is null. If it is, you show a loading indicator, or you show the converted image. If done in React with Apollo&#39;s Subscription components, it would look something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c20006bd5d055936584a56130a380454/href">https://medium.com/media/c20006bd5d055936584a56130a380454/href</a></iframe><p>As you see, in the above component:</p><ol><li>If there is an error in subscription, we render some error UI.</li><li>If the subscription is in loading state, we show a loading UI.</li><li>If the subscription response is empty i.e. there is no row in the database where id is equal to the given id, we say that the id in the URL parameters is invalid.</li><li>If we get a response but the converted_image_uri is null, we assume that the processing is still in progress</li><li>If we have a valid converted_image_uri, we render it.</li></ol><h3>Finishing up</h3><p>We discussed a pattern to build async image processing applications. You could use this architecture to build mostly all kinds of async applications. Check out <a href="https://3factor.app/">3factor.app</a> and <a href="https://hasura.io/">hasura.io</a> to know more about building resilient and scalable fullstack applications.</p><p>If you have any questions, stack them up in the comments and they’ll be answered ASAP.</p><p><em>Originally published at </em><a href="https://blog.hasura.io/building-an-image-processing-app-with-graphql-and-serverless"><em>blog.hasura.io</em></a><em> on March 26, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd43c752b2ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[graphql2chartjs: Realtime charts made easy with GraphQL and ChartJS]]></title>
            <link>https://medium.com/@rishichandrawawhal/graphql2chartjs-realtime-charts-made-easy-with-graphql-and-chartjs-4f2a01ca6798?source=rss-aa6dcd62795------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f2a01ca6798</guid>
            <category><![CDATA[charts]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[hasura]]></category>
            <dc:creator><![CDATA[Rishichandra Wawhal]]></dc:creator>
            <pubDate>Fri, 15 Mar 2019 08:33:38 GMT</pubDate>
            <atom:updated>2019-03-15T10:29:56.676Z</atom:updated>
            <content:encoded><![CDATA[<h4>Use <a href="https://graphql.org/">GraphQL</a> as a data source to build realtime charts with <a href="https://www.chartjs.org/">ChartJS</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tvwy9W3vxsYwwH8L.gif" /></figure><p>We started using ChartJS with GraphQL so that we could leverage GraphQL’s realtime subscriptions to build realtime charts. Soon enough we realised that we can automate this process of restructuring the GraphQL data to a form that ChartJS expects.</p><blockquote><a href="https://github.com/hasura/graphql-engine/tree/master/community/tools/graphql2chartjs"><em>graphql2chartjs</em></a><em> is an open source tool that reshapes your GraphQL data as per the ChartJS API. This makes building charts as easy as simply making a GraphQL query.</em></blockquote><p>The idea behind this tool is to generate ChartJS compliant data object from your GraphQL response by simply adding a few aliases in your GraphQL query.</p><p><a href="https://graphql2chartjs-examples.herokuapp.com/"><em>Check out a live demo here.</em></a></p><h3>Usage with Hasura</h3><blockquote><em>Hasura gives you an instant realtime GraphQL API on an existing Postgres database. You can create views to capture analytics and aggregations on your database and instantly turn them into charts.</em></blockquote><p>If you’re using Postgres and <a href="https://hasura.io/">Hasura</a>, this is what using graphql2chartjs looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bIOY01PtdfSBC0nz.png" /></figure><p>Watch this video below to see a demo/tutorial of using Hasura with an existing Postgres database, creating views and building charts.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F153iv1-qFuc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D153iv1-qFuc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F153iv1-qFuc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b651977f75e3177aeadf1926b9335bb1/href">https://medium.com/media/b651977f75e3177aeadf1926b9335bb1/href</a></iframe><p><em>Continue reading at </em><a href="https://blog.hasura.io/graphql2chartjs-realtime-charts-made-easy-with-graphql-and-chartjs/"><em>blog.hasura.io</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f2a01ca6798" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with the Hasura GraphQL Engine]]></title>
            <link>https://medium.com/open-graphql/getting-started-with-the-hasura-graphql-engine-cf86073846dc?source=rss-aa6dcd62795------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf86073846dc</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[hasura]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[postgres]]></category>
            <dc:creator><![CDATA[Rishichandra Wawhal]]></dc:creator>
            <pubDate>Thu, 23 Aug 2018 12:45:30 GMT</pubDate>
            <atom:updated>2018-08-24T14:32:43.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*F5dZw0GOTvHUHPA92lxDrg.png" /><figcaption>Instant Realtime GraphQL APIs on any Postgres database</figcaption></figure><h3>TL;DR</h3><ol><li><a href="#62d8">Introducing the Hasura GraphQL Engine</a></li><li>Basic <a href="#609c">deployment on Heroku</a>, and connecting to an existing Heroku Postgres database.</li><li>Basic <a href="#b48d">deployment using Docker</a>, and integrating with an existing Postgres database.</li><li>Using the <a href="#c1fc">built-in access control</a>, and a sample <a href="#b37a">integration with Auth0</a>.</li><li><a href="#3f5d">Community resources</a></li></ol><h3>Introducing the Hasura GraphQL Engine</h3><p>The Hasura GraphQL Engine is a high performance GraphQL server that gives you instant realtime GraphQL APIs over Postgres.</p><p>Hasura helps you build GraphQL apps backed by Postgres or incrementally move to GraphQL for existing applications using Postgres.</p><p>Some of Hasura’s features include:</p><ul><li>Works with <strong>existing, live databases</strong>: Point it to an existing Postgres database to instantly get a ready-to-use GraphQL API</li><li><strong>Realtime</strong> support: Convert any GraphQL query to a live query by using subscriptions.</li><li><strong>Dynamic access control</strong> that can integrate with your auth system (eg: auth0, firebase-auth).</li><li>Built-in support for <strong>powerful queries</strong>: filtering, pagination, pattern search, bulk insert, update, delete mutations.</li><li>An <strong>Admin Console UI</strong> &amp; Rails-inspired schema migrations</li><li><strong>Postgres ❤️</strong>: supports Postgres types (PostGIS/geo-location, etc.), turns views to <em>graphs</em>, trigger stored functions or procedures with mutations.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NokSLz97tUpEh1-v" /><figcaption>The Hasura Admin Console lets you create and view tables in your Postgres database and query them using the embedded GraphiQL interface.</figcaption></figure><p>You can deploy Hasura on either Heroku, or using a Docker container.</p><h3>Getting Started with Heroku</h3><p>Here’s how you can make a basic deployment of Hasura on the Heroku free tier:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FjUObpSl6dTE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DjUObpSl6dTE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FjUObpSl6dTE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/77c98bfcc4d2d0fc49420f10a761e778/href">https://medium.com/media/77c98bfcc4d2d0fc49420f10a761e778/href</a></iframe><p>If you are already running on Heroku Postgres, Hasura can also connect directly to give you GraphQL APIs. You can get step-by-step instructions <a href="https://docs.hasura.io/1.0/graphql/manual/deployment/heroku/using-existing-heroku-database.html">here</a>.</p><h3>Getting started with Docker</h3><p>To get the Hasura GraphQL engine and a fresh Postgres instance running as Docker containers, simply follow the three steps <a href="https://docs.hasura.io/1.0/graphql/manual/getting-started/docker-simple.html">here</a>. This is the easiest way to setup Hasura in your local environment.</p><p>In case you’d like to run Hasura on an existing Postgres database, follow this guide to <a href="https://docs.hasura.io/1.0/graphql/manual/deployment/docker/index.html">deploy the Hasura GraphQL engine as a standalone docker container</a> and connect it to your Postgres instance.</p><p>In this video, we add Hasura to an existing Gitlab instance, and query it using GraphQL:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fa2AhxKqd82Q%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Da2AhxKqd82Q&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fa2AhxKqd82Q%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/84e6c13b411eaf6dba83200df448f237/href">https://medium.com/media/84e6c13b411eaf6dba83200df448f237/href</a></iframe><h3>Using the built-in access control system</h3><p>Hasura comes with a granular, dynamic access control system that can also integrate with existing authentication systems such as Auth0 or custom implementations.</p><p>For example, suppose you wish to integrate with Auth0:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F15ITBYnccgc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D15ITBYnccgc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F15ITBYnccgc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/14322a365e6c067a08a0643d37ae8cf4/href">https://medium.com/media/14322a365e6c067a08a0643d37ae8cf4/href</a></iframe><p>Similarly, you can integrate Hasura with other auth providers as well. <a href="https://docs.hasura.io/1.0/graphql/manual/auth/webhook-examples.html">This page</a> has a constantly updated list of sample integrations.</p><h3>Community resources</h3><p>Hasura is an open source project, and you can find the repo <a href="https://github.com/hasura/graphql-engine">here</a>. In case there is a feature you would like to see, or a bug you would like to fix, please create an issue <a href="https://github.com/hasura/graphql-engine/issues">here</a> (or, submit a pull request 😀).</p><p>For more immediate support, you can also join the <a href="https://discord.gg/3FNQnWj">Hasura discord</a>.</p><p><a href="https://goo.gl/fR68ep"><strong><em>Hasura</em></strong></a><em> gives you instant realtime GraphQL APIs over any Postgres database without having to write any backend code.</em></p><p><em>For those of you who are new to the Hasura GraphQL engine, </em><a href="https://docs.hasura.io/1.0/graphql/manual/index.html"><strong><em>this</em></strong></a><em> is a good place to get started.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf86073846dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/open-graphql/getting-started-with-the-hasura-graphql-engine-cf86073846dc">Getting started with the Hasura GraphQL Engine</a> was originally published in <a href="https://medium.com/open-graphql">Open GraphQL</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>