Hasura GraphQL
Hasura GraphQL
by Hasura

VERSION latest

OS Ubuntu 18.04

Create Hasura GraphQL Droplet
đź’µ Free credit active: You have a $50, 30-day credit from a friend. Create your first Droplet to get started.

Description

Hasura GraphQL Engine lets you make powerful queries with built-in filtering, pagination, pattern search, bulk insert, update, delete mutations & subscriptions. You can also Trigger webhooks or serverless functions on Postgres insert/update/delete events. Comes with fine-grained dynamic access control that integrates with your auth system. This one-click setup also includes an empty Postgres database and automatic HTTPS from Let’s Encrypt using Caddy webserver.

Hasura GraphQL on DigitalOcean demo video

Software Included

PackageVersionLicense
Hasura GraphQL EngineLatestApache 2
Postgres10.5PostgreSQL License
Caddy0.11.0Apache 2
Docker CE18.06.1Apache 2
Docker Compose1.22.0Apache 2

Getting started after deploying Hasura GraphQL

Hasura runs smoothly and can support thousands of users for your app on a 1GB RAM/1xCPU Droplet.
Once the Hasura GraphQL Engine one-click Droplet is ready, you can visit the Droplet IP to open the Hasura console. It may take a minute or so to start. On this UI, you can create tables & explore GraphQL APIs.
Follow these steps to run your first GraphQL query:
  1. Open console: Visit the Droplet IP in a browser to open Hasura console.
  2. Create a table: Navigate to the Data tab on the console and:
    1. Create a table called profile
    2. Create a column called id with type (Integer auto-increment)
    3. Create a column called name with type (Text)
    4. Choose id as the primary key and click the Create button
  3. Insert sample data: After creating the table, go to the Insert Row tab and insert some sample rows:
    • Thor
    • Iron Man
    • Hulk
    • Captain America
    • Black Widow
  4. Try out GraphQL: Switch to the GraphiQL tab on top and execute the following GraphQL query:
    query {
      profile {
        id
        name
      }
    }
    

API Creation

In addition to creating a Droplet from the Hasura GraphQL 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB Hasura GraphQL Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.


  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"hasura-18-04"}' \
      "https://api.digitalocean.com/v2/droplets"
      

Support Details

Supported By:Hasura
Support URL:https://discordapp.com/invite/vBPpJkS

Learn More

Product Docs

Technical overviews, how-tos, release notes, and support material

Tutorials

DevOps and development guidelines

API Docs

Run your resources programmatically

Ask a question

Connect, share and learn