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

How to authenticate as admin, query and mutate Hasura in python?

I'm trying to find any documentation with examples to authenticate to hasura on heroku in python and query and mutate data, I couldn't find any info on this topic, can you guy please help me?
Allex Radu
  • 1,257
  • 13
  • 24
0
votes
1 answer

Using X-Hasura-User-Id on a JSONB Permission filter

I'm setting up a Hasura server on top of an existing Postgres database. The schema uses JSONB a lot, and all entities are modelled like this: EntityName ----------- id: String resource: JSONB In my current case, I have the entity Appointment. I…
Marcelo
  • 4,580
  • 7
  • 29
  • 46
0
votes
1 answer

Fetch() equivalent in C# for GraphQL on Hasura

I'm trying to learn about GraphQL applied to .net (C#). My goal is to do transform this javascript code : fetch('https://____.herokuapp.com/v1/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept':…
ooo
  • 3
  • 3
0
votes
1 answer

Hasura SQL Query id: Integer not working bug

I created the following SQL query on Hasura. CREATE OR REPLACE FUNCTION public.search_nearby_user(userId integer, distancekms integer) RETURNS SETOF users_nearby LANGUAGE sql STABLE AS $function$ SELECT A.userid, A.location, (SELECT…
Vaibhav Verma
  • 937
  • 1
  • 8
  • 25
0
votes
1 answer

Using Hasura session in PostgreSQL function for computed field

I created a "favorite" functionality, which is similar to the common "Like" functionality in many websites. There are 3 tables: "User" with primary key UUID "Photo" with pk UUID "Favorite" with pk user.UUID and post.UUID The corresponding SQL…
ManUtopiK
  • 4,495
  • 3
  • 38
  • 52
0
votes
1 answer

Hasura connect error when i filter like with accentuation on flutter

When i put a filter with accentuation in connect.subscription(getAllQuery) just doesn't respond and keeps trying and trying to loop subscription getAllProduto { produto(where: {descricao: {_ilike: "%feijão%"}}, order_by: {descricao: asc})…
famadori
  • 83
  • 2
  • 9
0
votes
1 answer

ReferenceManyFields (One to Many Relationship)

I am working on a project where I have to create one to many relationships which will get all the list of records referenced by id in another table and I have to display all the selected data in the multi-select field (selectArrayInput). Please help…
Amit Kumar
  • 169
  • 1
  • 10
0
votes
1 answer

Client side data backup on Hasura

So the question is: How can I get client-side backups so that a user can get their own data to a downloadable file, which can then later be used to restore all of the data? Information about my stack: I use React, mobx, apollo in the frontend. I use…
Str4
  • 3
  • 3
0
votes
1 answer

How to write GraphQl Upsert Query in .graphql file

I am able to execute upsert query in Hasura UI and I'm using manifold plugin for client classes generation in java. I'm struggling at keeping an on_conflict with multiple fields in .graphql file. The below schema I'm using in graphql file. Thanks…
Mahender Ambala
  • 363
  • 3
  • 18
0
votes
1 answer

Kubernetes Pod can't connect to local postgres server with Hasura image

I'm following this tutorial to connect a hasura kubernetes pod to my local postgres server. When I create the deployment, the pod's container fails to connect to postgres (CrashLoopBackOff and keeps retrying), but doesn't give any reason why. Here…
tbd_
  • 1,058
  • 1
  • 16
  • 39
0
votes
1 answer

Cannot insert into hasura when it uses UUID as ID

I'm trying to use react admin with ra-hasura data provider, when I try to create a record where the id is a UUID which is actually auto generated by postgresql, the interface of react admin insert a UUID generated by the react admin itself as an id…
0
votes
1 answer

How to query postgres RangeField using Hasura GraphQL

Python3 django==3.0.5 Hasura v1.1.1 postgres==11.3 I am trying to use Hasura filter on the IntegerRangeField() and DecimalRangeField(), but stuck at first one from django.contrib.postgres.fields import DecimalRangeField, IntegerRangeField from…
joe
  • 8,383
  • 13
  • 61
  • 109
0
votes
1 answer

Need to add trial period of 30 days in Flutter App with Hasura

I need to provide 30 days of trial period for my Flutter App, I am Using Hasura with Flutter. Example if User sign up on 1 april, after 30 days need to direct him to purchase page. How to achieve this in Flutter and Hasura? Can anyone guide?
kinu
  • 13
  • 3
0
votes
1 answer

Adding multiple options in against single column in GraphQL

I am trying to make a query where I can add filters with multiple options. I currently have this query query FacilitiesQuery( $limit: Int $offset: Int $query: String $sort: [facilities_order_by!] ) { facilities( limit:…
Usman Tahir
  • 2,513
  • 4
  • 24
  • 38
0
votes
1 answer

graphql - Refer to other fields in mutation

I want to create 2 related objects, e.g. 1 Location and 1 Place where Place has a reference to Location like so: type Location { id: String name: String } type Place { id: String locationId: String } Is it possible to do this with…
richflow
  • 1,902
  • 3
  • 14
  • 21