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

Invalid Frame Header when Implementing Subscriptions for Apollo-Client with Hasura

I am creating an httpLink for mutations and queries, and then a wsLink for subscriptions since subscriptions need to go through a websocket. Here is an example of what my code looks like. const token =…
Narnian12
  • 117
  • 1
  • 8
0
votes
1 answer

Does Hasura generate Role-based introspection?

I want to build an admin tool based on a Hasura backend. Different users will have different level of access based on roles. Will I be able to do introspection per role and therefore know which fields (from queries) and buttons (for mutations) to…
0
votes
1 answer

error {"type":"pg-client","timestamp":"2021-08-02T05:04:50.035+0000","level":"warn","detail":{"message":"postgres connection failed, retrying(0)."}}

I am having some issues getting Hasura to connect to postgres. The error error {"type":"pg-client","timestamp":"2021-08-02T05:04:50.035+0000","level":"warn","detail":{"message":"postgres connection failed, retrying(0)."}} after using docker-compose…
0
votes
0 answers

Why hasura console not returning data as my custom sql function?

Hasura API explorer behaving a bit different than Raw SQL runner's results. I have this custom function. CREATE OR REPLACE FUNCTION public.session_groupings( group_bys TEXT[] DEFAULT '{}', "sessionWhere" json default null ) RETURNS SETOF…
Subhendu Kundu
  • 3,618
  • 6
  • 26
  • 57
0
votes
1 answer

How to get error response from hasura graphql query in iOS

I am using hasura for queries. ApolloNetworkClass.shared.apolloClient.fetch(query: GetCollectionsQuery(user_id: "120"), cachePolicy: .fetchIgnoringCacheData) { (result) in switch result { case .success(let result) : …
Punit
  • 3
  • 3
0
votes
1 answer

How to set request header to access Hasura GraphQL Heroku server in Flutter?

I am not able to send a POST request to my Hasura endpoint from my Flutter client and even from POSTMAN. Here is my current error: {"errors":[{"extensions":{"path":"$","code":"invalid-json"},"message":"Error in $: not enough input"}]} I added…
husky
  • 831
  • 3
  • 10
  • 24
0
votes
1 answer

Error Flutter and Hasura endpoint access returns 'resource does not exist' and "path":"$"

I am trying to use GraphQL in Flutter with Hasura. This time, I am using Ferry Flutter but currently my response just returns null even though the endpoint is correct and I can access the data within the hasura/console. When I simply curl or web…
husky
  • 831
  • 3
  • 10
  • 24
0
votes
1 answer

Hasura returning duplicates items for some entries

I have a this graphql query on hasura query MyQuery { events(where: {event_id: {_eq: "6b1a8373"}}) { checkins { checkpoint { name } created_at user { email first_name last_name } …
Natnael
  • 59
  • 12
0
votes
2 answers

Make one Docker image wait for another to finish before building

I am very new to docker (apologies in advance for errors in my terminology / gaps in my knowledge) and have three services where one depends on one to finish before it can be built. The repo is set up to have them both as submodules with the below…
Charklewis
  • 4,427
  • 4
  • 31
  • 69
0
votes
1 answer

how get datas from Hasura hook "useQuery"

I'm a beginner in web development, so I'm trying to do a simple 'GET' with the hook "useQuery" of Hasura, and I can't access to my data. However, my query has been tested on the Hasura console, and it works. I have several array with some datas on…
Pasteque
  • 3
  • 1
0
votes
1 answer

How to modify GraphQL response in hasura?

I want to modify the response of hasura fetch query. the current response is this: { "data": { "ids": [ { "id_object": { "id": 33102 } }, { "id_object": { "id": 33104 } } ] } } And I…
Punit
  • 3
  • 3
0
votes
0 answers

is a way to done a call in hasura with blank pass?

version: '3.6' services: postgres: image: postgres volumes: - ./data/db:/var/lib/postgresql/data environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres -…
wagner
  • 1
  • 1
0
votes
1 answer

What is proper way to use graphql query variables to search for values matching two different searches?

I have a "users" table that is connected to "interestTags" table. I would like to be able to search users interestTags and return all users that match one or more tags, In this example I would like to be able to return all users that has…
0
votes
1 answer

How to model custom relationships involving multiple fields in Hasura?

I am using Hasura with Postgres database. I have 2 tables: LithicTransaction id: uuid LedgerItem id: uuid type: text referenceId: uuid Their relationship: A LithicTransaction may have 0 or 1 LedgerItem. A LedgerItem may have 0 or 1…
Andy Shih
  • 25
  • 3
0
votes
0 answers

Hasura crashed while going through the tutorial

I was going through the Hasura tutorial at the following site, and for some reason "Hasura Console" crashed. https://auth0.com/blog/building-a-collaborative-todo-app-with-realtime-graphql-using-hasura The timing of the crash is not clear, but I…
Toto
  • 1
  • 1