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

pg_dump query LOCK_TABLE on Hasura

I'm trying to get a backup of my database using https://devcenter.heroku.com/articles/heroku-postgres-backups But when I run this command heroku pg:backups:capture --app [app_name], I get the following error: ▸ An error occurred and the backup…
Vaibhav Verma
  • 937
  • 1
  • 8
  • 25
0
votes
1 answer

Having problem to add local hasura to Google cloud run

Do you have some information or tutorial to add local hasura to google cloud run. I already successfully set the hasura at google cloud run, but it seems i have a problem to connect it with our local database in hasura. i got an error ERROR:…
alfa zaid
  • 159
  • 1
  • 1
  • 5
0
votes
1 answer

Hasura - query for tags - null array supposed to return all results, but only returns items with tags

I have a query: query SearchProductData($tagId: [Int!]) { product(where: { productTags: {_or: {tagId: {_in: $tagId}}}}) { id name productTags { tag { id name } } } } and I pass in a variable…
user1048175
  • 1,100
  • 3
  • 12
  • 29
0
votes
0 answers

Unable to derive mutation in Hasura

I am having trouble deriving a mutation in a Hasura table I have. This is my mutation: mutation MyMutation { AddReview(body: "fear not, it will work", id: "xeZiZnx61MFWDxfhgAu-gQ") { affected_rows } } However, when I try to derive an…
0
votes
1 answer

Hasura graphQl update trigger repeats many time

My table columns look like name, email, phone, and pin. I'm using Hasura for collecting user details. Problem: I want to hash the pin field using some hashing algorithm. So I decided to have a separate AWS Lambda function to convert a plain pin to…
Akash D
  • 780
  • 2
  • 11
  • 27
0
votes
1 answer

Error while trying to update Hasura in Digital Ocean

I am trying to update the hasura to latest image v1.2.2 by modifying the docker-compose.yaml of my droplet in Digital Ocean. ![Text] https://nimb.ws/1hM7f3 But when I try to restart using "docker-compose up -d" I am getting the following error…
regShank
  • 215
  • 2
  • 12
0
votes
1 answer

Vue apollo - send authorization over websockets

I have a vue web app from which I'm trying to run a subscription using a hasura query. My problem is that I cannot pass to the Websocket request an authorization token as the backend expects. These are my current settings: const token =…
Andrei Maieras
  • 696
  • 5
  • 15
  • 34
0
votes
1 answer

How do I set my hasura permission to only see the rows of my table corresponding to a user?

Here's the thing. I have the 3 tables depicted here: People on my application can place orders. Then, I want a user with rex permission to see all the orders table's rows a user with delivery permission to only see the rows of the orders table…
Laurent Michel
  • 1,069
  • 3
  • 14
  • 29
0
votes
0 answers

java.lang.IllegalAccessError: when accessing GraphQL API from vertx

I have a graphlQL client in Hasura (running on docker instance), which I want to access from vertex. Following is my code: public class MyFirstVerticle extends AbstractVerticle { @Override public void start(Future fut) { …
oOXAam
  • 237
  • 1
  • 6
  • 20
0
votes
1 answer

Where does GraphQL argument type come from?

I have a query that looks like this: mutation update_single_article($itm: String, $changes: roles_set_input!) { update_roles(_set: $changes, where: {role_id: {_eq: $itm}}) { returning { } } } I am not sure where the type…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
0
votes
1 answer

postgres-error: function st_intersects(geography, geography, integer) does not exist

I have a table business_locations with a postGIS location column and I try to fetch the rows that are within a bounding box (function arguments). I am trying to run this function in Hasura: CREATE OR REPLACE FUNCTION…
Constantinos N
  • 253
  • 3
  • 17
0
votes
1 answer

How can I query Hasura API over HTTP to invoke SQL "WHERE LIKE" behavior?

I'm trying to update the ra-data-hasura library to allow filtering based upon partial matches. I've discovered how to call the server over HTTP via the PostMan tool, but cannot find a way to get the "where" property to look for partial (as opposed…
mrjbj
  • 329
  • 1
  • 10
0
votes
1 answer

Triggering a second GraphQL query based on data from initial query

Overview When WrappedApp initially loads, a query is sent to the GraphQL API to fetch the data (Tags). After this has completed a user can add an item to the ShortList in WrappedApp by clicking on a Tag in the TagsList (see screenshot below).…
nipy
  • 5,138
  • 5
  • 31
  • 72
0
votes
1 answer

Postgres function - resolve field with fallback

I have a table called Listing with fields type + typeCustom where type is a strict selection of values and when type is set to value "custom" I want to be able to dynamically resolve this as whatever is in my typeCustom-field. SELECT (CASE WHEN…
Alex
  • 1,689
  • 18
  • 27
0
votes
4 answers

How do I allow a role insert into a table (for signup), but after that deny further inserts for that user?

That's my question. I am using Hasura, and defining 'user' permissions. Users are of course allowed to modify their own information, and not allowed to insert new records into my users table. But when they signup, they should be allowed to insert…
raarts
  • 2,711
  • 4
  • 25
  • 45