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

Is there any way to get realtime data on apollo server from hasura using graphql subscription?

I am doing a project which need real time changes to be reflected on apollo server from hasura using graphql subscription. Apollo server have PubSub which only get published on trigerring a mutation or query which is on apollo. But I want that from…
0
votes
1 answer

How to transform record value before update? - Update API expects a different format than fetch API

I have setup react-admin with Hasura (GraphQL API on Postgres) using the ra-data-hasura provider and I ran into an error when trying to update a record in an existing table. I have this field tags with type varchar[] which is delivered by the fetch…
wats0n
  • 1
0
votes
1 answer

Hasura use SSL certificates for Postgres connection

I can run Hashura from the Docker image. docker run -d -p 8080:8080 \ -e HASURA_GRAPHQL_DATABASE_URL=postgres://username:password@hostname:port/dbname \ -e HASURA_GRAPHQL_ENABLE_CONSOLE=true \ hasura/graphql-engine:latest But I also have a…
Alexander Kleinhans
  • 5,950
  • 10
  • 55
  • 111
0
votes
1 answer

How to get refetchQueries data in reactjs 16.8

I'm trying to use refetchQueries to get an updated list of record after a mutation. I have tried below code to get updated data but the updated data showing in network tab of the developer console. This is for reactjs 16.8 and "react-apollo":…
0
votes
1 answer

How to iterate GraphQL aggregate nodes in Vuejs v-for

How to automate iteration in that cases, via VueJS or plain JS? In Vue component: ul(v-for='item in app_some') li {{ item.slug }} li {{ item.des1 }} //case 1: there can be from null to several nodes li {{…
0
votes
2 answers

Hasura - "Looks like you do not have any tables"

I have a Postgres Database with tables in it and they don't show up in Hasura.
Benoît P
  • 3,179
  • 13
  • 31
0
votes
1 answer

Use OR instead of AND in GraphQL boolean expression query

I am populating a table using graph QL query : The graphql query looks like : const DESSERT_QUERY = gql` query DESSERT_QUERY($where: dessert_bool_exp) { dessert(where: $where) { name calories fat carbs …
Tanu
  • 1,286
  • 4
  • 16
  • 35
0
votes
0 answers

should i query or should i use url variables?

Stack: nextjs (yes, I'm using SSR), Hasura, reactjs I have 2 pages, one of them queries and displays a table that contains users. Another page is for printing the said table using window.print(). So basically, the said 2 pages use the same data. I…
zai
  • 131
  • 2
  • 6
0
votes
0 answers

"How to fix 'an error has occurred' error in hasura for webhook receiver"

I developed a webhook receiver to read custom values sent in the mail and save that values in the database. When I tested this on the postman, it is saving values in the database. but when I tested this in hasura, it shows an error like ' an error…
0
votes
1 answer

Subscriptions error on Hasura GraphQL Engine deployed with Cloudfoundry on AWS

Hasura GraphQL Engine is deployed on a Cloudfoundry instance backed by AWS, it is exposed at a subdomain via an AWS ELB. The console is exposed at https://hasura.cloud.domain.com/console and the GraphQL API accepts queries at…
Shahidh
  • 2,472
  • 1
  • 18
  • 18
0
votes
1 answer

GraphQL replace Restful API or work with it?

So I gather GraphQL is a layer which sits in front of your RESTful API and can condense multiple requests down into one. Do you always have to go through a REST API, or can GraphQL talk directly with your MongoDB instead? Or it that what things like…
JS_Dev
  • 427
  • 4
  • 14
0
votes
2 answers

Need to find the error with connecting subscription with schema stitching

I am using apollo-server-express for graphql back-end. I am going to process only mutations there, but I want to redirect query and subscription on hasura by means of schema stitching with introspection. Queries through apollo-server to hasura are…
0
votes
2 answers

How to install Hasura Platform on custom VPS?

I want to try Hasura Platform for small project. I have a limitation on the geographical location of the server, so Digital Ocean is not suitable.
Alukos
  • 120
  • 1
  • 6
0
votes
1 answer

How to upload a credential.json file to Hasura cluster without adding it to a git remote repository

I am supposed to use a credvalue.json in some API being used by the program, but I don't want to upload this credentials to GitHub repository and still use it in microservice I tried adding it to .gitignore and copying it to src folder in docker but…
0
votes
1 answer

How to write a query in Hasura Data Api to give output based on input by user

How to write the postgres sql body in Hasura data api to get some result by taking input from user. The sql query is like"Select moviedetails from table name where movie_name='name enterd by user'.I want to know the structure to accept data from…