Questions tagged [hasura]

Hasura is an open-source tool that provides instant realtime GraphQL APIs and webhook event triggers on Postgres.

Hasura

Hasura provides a scalable and performant GraphQL API out of the box. It can run up to 1mio concurrent subscriptions, scaling vertically & horizontally seamlessly. It comes with a comprehensive permission system that allows you to enforce fine-grained access control. Authentication can be integrated using webhooks or JWT. Hasura also allows you to extend your GraphQL API with business logic through remote schemas (other GraphQL servers), actions (REST APIs) or even custom functions in Postgres. Event triggers make it possible to trigger business logic that is running in serverless functions.

Hasura runs in a Docker container and can be deployed to any cloud provider that runs Docker, or it can be run locally. Use Hasura migrations to migrate from your development environment to production, as well as for version control.

Tech stack

  • The Hasura server which serves the GraphQL API is written in #Haskell. It takes declarative configuration.
  • The Hasura console allows you to configure the Hasura server, manage your Postgres database and test your APIs. It's built with #React.
  • The Hasura CLI that is used for the CI/CD and migration workflows is written in #Go.

Useful links

Initial release

3rd July 2018.

729 questions
0
votes
1 answer

Graph QL returning one level of data in React/Apollo app

I am using Hasura for GraphQL on server. I am trying to run this query query MyQuery { user_attribute_values(where: {id: {_eq: 3}}) { id attribute_id user_id value user_attribute { enum_attribute_type { value …
Usman Tahir
  • 2,513
  • 4
  • 24
  • 38
0
votes
1 answer

Can I use the Hasura quickstart for production?

I have just started to use Hasura and I wanted to know. Do I have to use the deployment methods for a simple app or can I just use the quickstart on Heroku/Docker, Download the Hasura CLI and continue from there?
idan ahal
  • 707
  • 8
  • 21
0
votes
1 answer

JWT token miss the claim in Nuxt Auth module with Auth0

In my Nuxt app after successful log in I have claim from Auth0. Devtools console shows it: $vm0.$auth.$state.user['https://hasura.io/jwt/claims'] {x-hasura-default-role: "user", x-hasura-allowed-roles: Array(1), x-hasura-user-id:…
m.mikolajczak
  • 124
  • 1
  • 2
  • 11
0
votes
1 answer

Not able to synchronize users from Auth0 to Hasura

I want to sync users from Auth0 to Hasura using Flutter Auth0 and Hasura Auth0 JWT Integration. I am not able to sync any information in Hasura table from Flutter frontend, I am passing the x-hasura-admin-secret header. Here is my code: final…
kinu
  • 13
  • 3
0
votes
1 answer

I use Hasura on Heroku. How can I move to work locally with a docker with current data?

I now work with Hasura deployed on Heroku. I want to start to work locally with the same image. How can I do it?
idan ahal
  • 707
  • 8
  • 21
0
votes
1 answer

DB credentials for Hasura on Heroku

I've deployed hasura on heroku, how can I get the DB credentials of the same. I would like to use those credentials in a django app --Thx.
Jayanth
  • 587
  • 1
  • 4
  • 15
0
votes
1 answer

How to implement custom authentication with hasura?

I am working on a food delivery webapp. So there will be two types of users, 1. customer. 2. vendor. I can set custom permission on tables for two users in hasura console. Now how to implement the authentication setup where user can signup/login two…
Sujoy Saha
  • 220
  • 1
  • 13
0
votes
2 answers

Flattening Result from Apollo/Hasura GraphQL Query using Typescript

Using Apollo client hooks, I retrieve the following query in a component: import { gql } from '@apollo/client'; interface User { id: number; email: string; role: string; } interface QueryData { organization_users:…
Sammy
  • 3,395
  • 7
  • 49
  • 95
0
votes
1 answer

Hasura "Running Total" Computed Column

I'm looking to create a computed column in Hasura which returns a set of another table and includes a running total column of the set. For example: table_a id product_id ----------- ---------- 1 "1" 2 "2" …
Alec Sibilia
  • 847
  • 2
  • 10
  • 22
0
votes
1 answer

Hasura browser console giving error "502 Bad Gateway"

I've got Hasura running on a DigitalOcean droplet pointing to a managed Postgres instance on DigitalOcean - it works well. But now I'm trying to make another Hasura droplet point to a test database in that Postgres instance. I created the database…
Brian Burns
  • 20,575
  • 8
  • 83
  • 77
0
votes
1 answer

Hasura request headers in mutation

Is there any way to include request header in mutation variable? Say, I have CF-Connecting-IP: 128.0.0.1 in my request header and i need to insert in in mutation like mutation MyQuery { insert_signatures(objects: {ip: CF-Connecting-IP}) { …
Headshaker
  • 51
  • 4
0
votes
1 answer

Does hasura generate indexes?

Hypothetically, given the gql query files, it could generate appropriate indexes itself, or just do so during the runtime. Searching the docs for index I got nothing.
janat08
  • 1,725
  • 2
  • 16
  • 27
0
votes
1 answer

Graphql is returing the error as "Can't parse `Array` value, expected array" when I'm trying to run gradle

I'm trying a mutation query in Android using ApolloClient below is my .graphql file mutation insertAddress($city: String, $landmark: String, $postcode: Int, $state: String, $type: String, $userUuid: String) { __typename …
Ramu Hegde
  • 65
  • 1
  • 12
0
votes
2 answers

How to correctly save the value in sharedPreferences? - Flutter

Where am I going wrong? I have login with google to get the token and send it to graphgl, this token is saved (it was meant to be) in sharedpreferences, but it is not saving, I have the following action (mobx). @action Future loginWithGoogle() async…
João Mello
  • 304
  • 3
  • 12
0
votes
1 answer

Using hasura with flutter , getting the following errors , Graphql version ^3.0.0

Using Hasura with flutter, getting the following errors, Graphql version ^3.0.0 { "resource": "/D:/example_hasura1/lib/county.dart", "owner": "dart", "code": "argument_type_not_assignable", "severity": 8, "message": "The argument…
user2132225
  • 119
  • 1
  • 1
  • 8