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
0 answers

Hasura - Actions for Authentication (Login, Logout, Register)

I have a server running a Hasura and GraphQL. I need to implement an authentication system and I am trying to find the easiest but most stable and secure way to do it. I found some examples online on how to use GraphQL actions to register a user by…
gbos
  • 503
  • 2
  • 6
  • 28
0
votes
1 answer

How to compare a variable in GraphQL query with a Value

I am trying to create a graphQL query in which i want to check if the variable by the name $Month is equal to the string "March". But i cant find a way to do it. query MyQuery($userid : ID , $Month : String) { dbo_table(where: { …
Nirmal
  • 1
  • 2
0
votes
1 answer

Auto delete data from a table?

I have field 'Timer' and 'Name' in a Table. I want to set it up as when a row is added to that table. The row should autodelete after the timer runs out. How can I set it up? I'm using Hasura as my GraphQL client and having a React Application?
KillMe
  • 184
  • 5
  • 20
0
votes
1 answer

Where can I find hasura log file

Am running Hasura Graphql engine on docker and I need to make use of the log file that hasura produces. How can i find the path of the log file in hasura container?
Maalej Amine
  • 11
  • 1
  • 5
0
votes
0 answers

502 Bad Gateway with GKE nginx

Im trying to forward to my api on /api/ and my UI on / My UI is all working fine and my logs for the nginx ingress and api (which ive tested with port forwarding) are all working fine. But when i curl or go to IP/api/healthz (which would be the…
0
votes
0 answers

Heroku app displays a blank white page on deploying a React Hasura GraphQL App

I created a simple Schedule management app using Hasura GraphQL API and React. I tried to host my app on Heroku using CLI however, its not working propwerly. It displays a blank white page when I open it. I am using Heroku and GraphQL for the first…
Yash Sethia
  • 55
  • 1
  • 8
0
votes
1 answer

Unable to host my React Hasura GraphQL app on Heroku

I created a simple Schedule management app using Hasura GraphQL API and React. I tried to host my app on Heroku by linking by github repository with it however, its not working propwerly. I am using Heroku and GraphQL for the first time so I am…
Yash Sethia
  • 55
  • 1
  • 8
0
votes
1 answer

Why doesn't my GraphQL query return the right result when triggered from GO?

I'm new to both Hasura/Graphql and GO. I've succeeded in writing a couple of Hasura actions which are supported by a GO server which in turn calls the Hasura server to run a query. These both work. For some reason the third one does not and I cannot…
SusanAdey
  • 11
  • 1
0
votes
1 answer

Unable to take time and dat as input and write into database implemented using Hasura GraphQL

I am trying to create a very simple 3 page schedule managing app using React and Hasura GraphQL. I display all scheduled meetings one one page, I take the Title of the meeting, Date and number of participants as input from the user and sen the user…
Yash Sethia
  • 55
  • 1
  • 8
0
votes
1 answer

Is is possible to pass operator as variable/parameter in hasura-graphql

I have a requirement where I need two operators(_and and _or) based on the inputs. So is it possible to pass operator as variable/parameter in hasura graphql? I am passing "match" variable, the requirement is I should be able to pass "_or" or "_and"…
Amrutha VS
  • 144
  • 1
  • 1
  • 10
0
votes
1 answer

Hasura Graphql- How to pass Output of one Query as an input to the other Query?

I am new to Postgres DB and Hasura-Graphql. It would be good if anyone can help me out. So there are two tables, Table1 with( username, email, id, table1id) and Table2 with (username, email, booksRead, visitedLocations, table2_id). These two tables…
Amrutha VS
  • 144
  • 1
  • 1
  • 10
0
votes
1 answer

average aggregate on nested data

What I would like to get is the average ScoreOverall of all the products within the List. I've tried adding some relationships but I can't get an aggregate "endpoint" on a nested level. The data model: List |--ListProducts (linking table, one list…
user1048175
  • 1,100
  • 3
  • 12
  • 29
0
votes
1 answer

"no such type exists in the schema: 'timetz'" in hasura

mutation MyMutation($title: String!, $date: date!,$stime: timetz! , $etime: timetz! ) { insert_schedules(objects: {title: $title , date: $date, start_time: $stime, end_time:$etime}) { affected_rows } }` Error { "errors": [ { …
Nitish
  • 35
  • 1
  • 1
  • 6
0
votes
1 answer

Why can't I use a plsql argument in this where clause?

I have a function below (is_organizer) that works, and lets me use this method as a computed field in Hasura. The function below (is_chapter_member) which is almost identical, doesn't work. WORKS CREATE OR REPLACE FUNCTION is_organizer(event_row…
Trey Stout
  • 6,231
  • 3
  • 24
  • 27
0
votes
1 answer

Hasura @skip where condition in query

I have two models, user and accounts. A user can have zero or more accounts. I can fetch all the users (with and without accounts) with the below query. I also want to filter the users based on the account name for which I'm using the _ilike…
user10179187
  • 99
  • 1
  • 1
  • 6