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

How can I clone a hasura project as a collaborator?

We are working on a node-express application and I have been assigned the collaborator role.
Saurabh Shubham
  • 43
  • 2
  • 14
0
votes
1 answer

Bulk query from a single request using request promise module

Here is my sql tables for a splitwise clone: #1) Table name: sp_user |user_id |username +-------------------- |1 |user1 |2 |user2 |3 |user3 |4 |user4 #2) Table name:…
Laxmi Sathy
  • 45
  • 1
  • 1
  • 5
0
votes
1 answer

Is it possible to use SQLAlchemy with Hasura Postgres BaaS?

I am trying to find out if it's possible to use SQLAlchemy with Hasura. If yes, what would be the database URL?
ashwani
  • 5
  • 2
-1
votes
1 answer

Hasura Subscriptions - 1 User receiving everyone else's notifications

I'm running a Hasura 2.32 Server on-prem via Docker container. The backend is MSSQL 2019. Background: We have a Hasura Subscription to a notification table in MSSQL. The notification table has a user_id column which applies to a client logged into…
BAA
  • 1
-1
votes
1 answer

hasura One-off scheduled events 'resource does not exist' error

I got error when i try to create scheduled event. data: { code: 'not-found', error: 'resource does not exist', path: '$'} Here is the code i used: const add_event = await axios("http://localhost:8080/v1/graphql/query", { method: "POST", …
-1
votes
1 answer

GraphiQL Mutation: How can I ignore other objects in query variables

Currently having hard time setting up my end points clerk to hasura. I am absolute new to this platform specially at GraphiQL and just following documentations and youtube video What I am trying to do is import/insert specific data i neeed only from…
Mashwishi
  • 177
  • 1
  • 4
  • 16
-1
votes
1 answer

Failing to setup Websocket link

Been trying to get a Subscription working with Hasura and Vue Apollo with a websocket link with Vue Apollo with Vue3. Have it all seemingly setup. The subscription works in Hasura so that’s right. The query version worked with the HTTP link. So the…
-1
votes
1 answer

Hasura complex search of products

How can i solve this problem with complex searching in products? This is what i have now as a standard get products and search on them. query getProducts($limit: Int, $offset: Int, $searchQuery: String) { products_products(limit: $limit, offset:…
Ne Xen
  • 1
  • 2
-1
votes
1 answer

Can I change the env value of Hasura Cloud from the CLI?

Hasura Cloud is in use. I want to synchronize environmental variables in GitHub action at all times for this project. Is there an option to read the .env file from the CLI and apply it to Hasura Cloud?
-1
votes
1 answer

How to change id column data type integer to auto-increment Intenger in hasura

I got this error in hasura console: { "internal": { "statement": "ALTER TABLE users\nADD id Integer auto-increment;", "prepared": false, "error": { "exec_status": "FatalError", "hint": null, "message": "syntax error at or near \"auto\"",…
nishar
  • 19
  • 3
-1
votes
1 answer

Run express-js, postgres and graphql-hasura with docker

I have simple express js app, postgres db and graphql engine with docker-compose file like this: version: '3.9' services: server: build: . ports: - '5000:5000' db: image: 'postgres' # ports: # - '4321:5432' …
Oto Shavadze
  • 40,603
  • 55
  • 152
  • 236
-1
votes
2 answers

How to add a string length constraint in Hasura GraphQL?

In the Hasura console, I have a field for a table that is of type string and I wish for this field to be limited to 7 characters. What kind of regex or expression do you add for this to work?
pizzae
  • 2,815
  • 6
  • 26
  • 45
-1
votes
1 answer

hasura - to call an http service api and insert the response into postgresql

I've already made an action of type query that calls an http endpoint and return a list of results. Then i should insert this resut into the postgresql (i suppose through a mutation). So, how can i join this insert mutation to the previus query…
pinale
  • 2,060
  • 6
  • 38
  • 72
-1
votes
1 answer

Hasura: How to filter by user specified ranges, where data contains ranges

In the database, there are shoes of sizes 41.0, or 41.5-42, 42-43, etc. I have them saved as: 41.0 -> shoes_min=41.0; shoes_max=41.0 41.5-42 -> shoes_min=41.5; shoes_max=42.0 42-43 -> shoes_min=42.0; shoes_max=43.0 My proposed filter to show up all…
dnk8n
  • 675
  • 8
  • 21
-1
votes
1 answer

How to setup a refresh_Token call with Hasura and firebase

I have a Hasura server running and firebase-functions. On the frontend I have angular. I have a working login function that gets the jwt token and the refreshtoken. However I would like to save them in a serverside HttpOnly cookie and make a silent…
Super Mensch
  • 119
  • 8
1 2 3
48
49