Tag: hasura
-
Cannot connect Hasura graphql with existing Microsoft SQL Server database
0 I am unable to connect hasura with already existing Microsoft SQL Server database. For testing purpose I have used a local Microsoft SQL Server database with: server name: (LocalDb)MSSQLLocalDB user_name: user password: pass I have used the hasura cloud for connecting the existing database. This is the database url: Driver={ODBC Driver 18 for SQL…
-
Issue with Nullable Types in Hasura GraphQL Schema Generation
0 I am facing an issue with the return types of Hasura queries when generating schemas using the codegen library (via yarn graphql-codegen –config codegen.ts command). Previously, the generated schema used to look like this: schema in graphql.schema.json — { "kind": "OBJECT", "name": "table_name", "description": "columns and relationships of "table_name"", "fields": [ ….. { "name":…
-
React Admin with ra-data-hasura Error: Unknown resource . Make sure it has been declared on your server side schema
0 I’m using React Admin with GraphQL and ra-data-hasura. My problem is that the Introspection Query is made only when the app starts (user has role guest before login) and after login, the Introspection Query does not refetch, so I get errors for the resources that the logged in user should have access to. After…
-
How to run oauth logic before an action?
0 I have a number of actions that interact with a REST API which were generated using the “import from OpenAPI” function. One of those actions is a ‘v1/token’ for oauth for the other actions. Whats the most elegant way to use this action before the other actions to ensure I have the correct ‘accessToken’…
-
Invalid datetime format. […] The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value
-1 Here is info about our technical development environment : • .NET 6 • C# 10 • Hasura GraphQL v2.6.2-pro.1 • Micrsoft SQL server 2019 • Visual Studio 2022 • "GraphQL" version="7.3.1" Proxy • "GraphQL.Client" version="5.1.1" Proxy • "GraphQL.Client.Serializer.Newtonsoft" version="5.1.1" Proxy I have application code that Converts integer-based Unix timestamp into a C# DateTimeOffset I…
-
Hasura query nullable variable
0 I am trying to get superior id one by one from my database, but the last one will be allways nullable and i don´t know how to be able to ask in Int type varible for null value. I tried this query which function untill i use the null value. query GetSortHierarchy($device_id: Int!, $filter_id:…
-
How to setup Hasura CLI?
0 I installed hasura CLI and I want to send data on my hasura cloud project. I tried different ways to launch hasura console but I don’t find the good way to launch it. Every time I have the same error and I don’t know how to solve it. You can see my Hasura CLI…
-
Is there a way I can remove the action name from my actions response in Hasura?
0 I attempted to use response transformation in Hasura to extract the response_body from an action response. However, the action response is structured as follows 1. { "action_name": { response_body } } My desired outcome is to obtain the response_body without the action_name key, like this: 2. { response_body } Using response transform {{$body}} you…
-
no such column exists for PostgreSQL db in Hasura (Graphql) console when adding column via DBeaver
6 I just tested modifying a table in my PostgreSQL db through DBeaver and it seems to have broken the db when looking at the data from the Hasura (Graphql) console. I simply added a column from Dbeaver. In Hasura I get an error "no such column exists". Anyone have any idea why or how…
-
Hasura action handler does not exist (Name or service not known)
2 I have an instance of Hasura running in the Docker container and action handler API written in NodeJS/Express running directly on the machine. When I test everything locally it works like a charm ( macOS M1 ), but when I replicate the same setup on the server ( Ubuntu 20.04 ) it returns an…