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

can an alternative migration framework be used with hasura?

Is it possible to use a different migration framework for your relational database with hasura? I am seeing hasura has the ability to manage migrations as noted in the documentation here. We are using liquibase as the migration framework for all of…
justsomeguy
  • 513
  • 4
  • 11
0
votes
1 answer

Filtering data based on columns in the result in hasura query

I have two tables A and B. A [ a_id, a_num] B [ b_id, b_num, a_id ] How can we write a single hasura query to fetch rows from B where b_num < a_num joining the table based on A.a_id = B.a_id?
lokesh kumar
  • 961
  • 1
  • 10
  • 18
0
votes
1 answer

hasura database connection failing with error : password authentication failed for user postgres

As per the removal of Heroku free product plans. I planned to switch the my application database into rds postgres db, and i setup all those things as per the hasura doc. The issue is when i try to connect the database its showing: password…
Rahman Haroon
  • 1,088
  • 2
  • 12
  • 36
0
votes
0 answers

Hasura - Use custom headers in queries and mutations

I would like to be able to use custom headers in queries and mutations. Basically it would be some context that all the queries and mutations should take into account. I cannot find a way to do it. Is it even possible with the the current (v2.15.0…
yaya
  • 1
0
votes
0 answers

Randomly graphql error "field 'apellido' not found in type: 'profesores'"

I'm working with a React App, using Heroku and Hasura. After creating the column "apellido" in my table "profesor" in Hasura, i have been getting randomly this error whenever i'm trying to retrieve the "apellido" data from "profesor" field…
Neth0
  • 13
  • 2
0
votes
1 answer

How can I go about using Hasura CLI to export metadata via Windows Active Directory Login?

Here is information about our technical environment: Hasura GraphQL Current server version: v2.6.2-pro.1 Hasura CLI version 2.15.0 We log onto the Hasura GraphQL Web UI Console using our Windows Active Directory Login (essentially Single-SignOn…
crazyTech
  • 1,379
  • 3
  • 32
  • 67
0
votes
1 answer

how to insert data into two related tables

I have this json header/detail that I send to hassura graphql. I would like to use variables as objects and arrays of objects to organize the code. mutation insertData( $presidente: bigint, $vocal1: bigint, $vocal2: bigint, $ano: Int, …
0
votes
0 answers

malloc():unaligned tcache chunk detected error occurs. error in firebase emulator

I am using the firebase emulator in the docker. + hasura(remote-schema) When the firebase emulator sends many function requests, the data is not answered after the malloc():unaligned tcache chunk detected error occurs. (If you request a little bit…
0
votes
2 answers

Using Request Headers in Query/Mutation

I am following Hasura basic tutorial on creating a todo app https://hasura.io/learn/graphql/hasura-advanced/introduction/ and want to extend it and have few additional operations, but don't seem to be able. Setup is as in the tutorial - you have…
0
votes
1 answer

Getting Invariant Violation : invariant violation 47 on mutation query in appolo graphql

I am using a mutation query to take the input from user and update it in database but while updating it is throwing this error invariant violation which I am not able to understand, In mutation I have four objects with min and max value that is…
0
votes
1 answer

How can I build query with multiple _and conditions from array in Hasura

I have the following situation in Hasura. A table with articles, a table with tags and one mapping table called articles_tags. What I'm trying to achieve is to get all the articles that have certain tags assigned to them. The query that comes to my…
zhelyazko777
  • 17
  • 1
  • 5
0
votes
1 answer

Hasura Auth Clarifications

I have 2 things which i would like to confirm before moving forward with the workaround i have in mind. When using JWT Auth with HS256 algorithm, i have a key which is less than 32 characters in length. I'm getting this error - "Error in $: Invalid…
0
votes
1 answer

Timezone getting removed from timestamptz after inserting

Docker config: postgres: image: postgres ports: - "5432:5432" volumes: - db_data:/var/lib/postgresql/data environment: POSTGRES_PASSWORD: postgressecretkey graphql-engine: image: hasura/graphql-engine:v2.10.1 …
Muchie
  • 45
  • 9
0
votes
1 answer

How to write hasura kubernetes deployment file to connect multiple postgres database

Folks I have multiple postgres db instances. I need to create hasura deployment file to connect multiple postgres databases. Any suggestion for creating deployment file.
Omkara
  • 414
  • 4
  • 16
0
votes
0 answers

Hasura Remote Schema to Database Array relationship returns invalid input syntax for type integer

I have got a custom Graphql server running in a separate server and I wanted to include a query from it to Hasura with the remote schema feature. I've created the remote schema and it is working well but I also needed to create an array relationship…
Mikias Abebe
  • 149
  • 2
  • 6