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
-1
votes
1 answer

Getting CORS Issue on Hasura Graphql while accessing From Angular 10

I am running angular application on localhost:4200 while GraphQL are running using the following environment. export const environment = { BASE_URL: 'https://iotech.ddns.net/', LOGIN_URL: 'https://iotech.ddns.net/', METRIC_VALUES_URL:…
-1
votes
2 answers

Http request with Hasura graphql not working

I'm a newbie to Hasura and need a little help trying to pull data via an http request. Below is my request but I don't think my syntax is correct. I need to pass ajson object where the key is query and the value is the code block. How do I do…
virtualbis
  • 397
  • 1
  • 14
-1
votes
3 answers

How to camelCase my responses' fields and tables in Hausra or ApolloClient?

In my aplications I use Hasura for my graphql server and Apollo for the client. I have a postgres schema with snake_case table and field names, but I want to have camelCases keys in my responses' objects. Any known way to achieve that? I can see…
benams
  • 4,308
  • 9
  • 32
  • 74
-1
votes
1 answer

How does Graph QL queries data when we have multiple queries in our application in different places?

Since GraphQL provides a single API endpoint to do API queries and there could a situation where we have written multiple Graphql queries in our frontend application (which provides data to the different components of our application) and these…
-2
votes
1 answer

How to find text in jsonb in all fields using graphQl query

I have Table in postgresql with two columns id(int) and data(jsonb) id | data --------- int | jsonb data has undefined format for example { id: 0, name: "Sergey", age: 23} or {vehicle: "motorcycle", max_speed: 250, brand: "honda"} I need to write…
-2
votes
1 answer

Getting the error "something went wrong logging in TypeError: Cannot read properties of undefined (reading 'sign')" in jsonwebtoken code

I am getting the error "something went wrong logging in TypeError: Cannot read properties of undefined (reading 'sign')" in my console and i need help to solve it. Here is my code import { mAdmin } from "../../library/magic-server"; import { jwt }…
SOHAM
  • 395
  • 1
  • 2
  • 8
-2
votes
2 answers

Flutter: GraphQLError: invalid input syntax for type uuid: ""

I am new to GraphQL and Hasura. I am acquiring a firebase user JWT and passing it to a Hasura GraphQL endpoint, but I'm receiving error messages GTMSessionFetcher invoking fetch callbacks, data {length = 3322, bytes = 0x7b0a2020 22616363 6573735f…
Abdullah Hamadi
  • 161
  • 3
  • 10
-2
votes
1 answer

Why I'm I getting an error saving date using graphql > hasura > postgres

I'm using react, apollo, graphql, hasura, postgres as my stack to interact with the database. I think my issue is something small, so I'll just focus on the part that's not working rather than posting the whole code. Thanks. Error: GraphQL error:…
Frederick Mfinanga
  • 1,045
  • 1
  • 10
  • 27
-2
votes
1 answer

How to use variable for Hasura query?

I am trying to make a request that takes a variable for the distinct_on parameter, but what I have doesn't seem to work: query customers($distinct: String!) { customers(limit: 20, distinct_on: $distinct) { startDate endDate } } I am…
Philip-lf
  • 105
  • 2
  • 7
1 2 3
48
49