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

Hasura table relationship

I'm new to hasura and i'm searching how to relate a table with a column of int of array to another table. Let's say Users table is: ..and Products table is: I want to return products { id name number of users }
MrCorn
  • 13
  • 4
0
votes
2 answers

Select multiple columns from a table but group by one which is always unique

In the UI I have a table where I'm showing data grouped by shipday which is days of the week. To do that in the hasura I've created a PostgreSQL view - CREATE OR REPLACE VIEW "public"."view_shipday" AS SELECT shipdata.shipday, count(*) AS…
mused
  • 79
  • 6
0
votes
0 answers

polymorphic association In Hasura/PostgresQL

How I can handle polymorphic association using hasura graphql engine PostgreSQL,means for example assume there is video,post,user table and all need to have photo what I did before is post_photo,user_photo ... make relationship for each table with…
0
votes
2 answers

How to apply Hasura JSON metadata, which was generated from Hasura console, to Hasura docker container?

I plan to deploy Hasura Docker container into Kubernetes cluster. So I got a Hasura metadata JSON file (hasura_metadata_2023_02_23_16_59_45_407.json), which was generated form one Hasura via its setting in web console. My question how can I use this…
Jackk-Doe
  • 109
  • 7
0
votes
0 answers

specific GraphQL query fetch's are being cancelled

I've been using graphql for a project for the past few months and have never run into this problem. This specific query was able to run only once but now every time this query is fetched the resulting data is undefined. In the network tab of dev…
0
votes
0 answers

pagination on Hasura table and relationship - Relay API Hasura

I am working on a project where I need to get the combined pageInfo from Hasura Realy API. I have one table and one relationship on table. I want to get the pageInfo like endCursor and startCursor hasNextPage flag so I can control the limit on the…
0
votes
1 answer

Edit User's Custom Claims from Firebase

I am using firebase to generate JWT tokens to authorize access to a hasura graphql server. I want an end user to have a callable firebase function that they can call from the app so they can change the x-hasura-role in their claims without changing…
0
votes
0 answers

Hasura postgres connection failed/ refuses to connect?

Hello I was trying to connect Hasura to an already existing database of postgres. i tried all three menthods as ENV variables, URL, connection parameters. note that I have docker of both hasura and postgress in diffrent docker compose: Folloowing…
Ved j
  • 1
0
votes
1 answer

How to connect Docker Hasura to more multiple Postgre database?

Says that I have a Hasura running in Container (inside a Kubernetes) and I want this container hasura to connect to 3 different Postgre databases. Is there a way to configure this without using Hasura console web page, since this has thing to do…
Jackk-Doe
  • 109
  • 7
0
votes
1 answer

Dynamic role on hasura

I need to know that how we can implement dynamic role on hasura.I mean if we have lots of tables and want to have 4 access control per the table (insert, delete, update, select), a one way is that we create 4 roles for each table for example if we…
0
votes
1 answer

Is it possible to configure default roles for Hasura in config files?

I'm using hasura via docker. By default there is only admin role and I can add more roles using UI, but after I make restart docker there is only admin again. Is it possible to setup default user and permissions in config files?
v-ampire
  • 13
  • 1
  • 3
0
votes
0 answers

How can generic functions can be used for computed fields in hasura?

I've a logs table, which is it contains all the actions (updated, created) taken by operators (admin users). On this table 2 of these columns (indexed as hash) target_entity and target_id Which respectively stores table name: table name of the…
siniradam
  • 2,727
  • 26
  • 37
0
votes
1 answer

How to use a query result as a variable ? Hasura Flutter

I am using Hasura with my Flutter Application.. I have 2 tables: tasks and categories tasks comprises of id, task_name, category_id, status. category comprises of id, category_name, user_id, color. What I want to do is get the name of the category…
0
votes
0 answers

have Hasura inheritance properties to do it graphically not in script to make super type and sub type inherit?

I was trying to make multiple role in hasura for example assume I have techician,customer role, then I need to have users table to fetch with role attribute and if I use inheritance it works completely but inheritance is not available on hasura. I…
0
votes
1 answer

Block hasura from sharing request information in remote schema errors

When hasura has a remote schema error (such as a timeout) it shares all the request details to the client calling it including any internal forwarded header files which can include shared secrets. Is there a way to prevent it from doing this?
meds
  • 21,699
  • 37
  • 163
  • 314