Questions tagged [hasura-cli]
14 questions
3
votes
1 answer
How to properly setup an architecture for working with Hasura metadata in different branches?
Hasura has a great system of incremental migrations of database schema.
You set it up, create a new branch, launch console from cli, do your changes and get a bunch of migration files.
Add those files to git, merge them with master, when you are…

Amantel
- 659
- 1
- 8
- 18
3
votes
0 answers
Hasura metadata apply fails with "key "tables" not found"
I try to apply my local hasura metadata(tables.yaml) file on my server, using hasura metadata apply --admin-secret=password --endpoint=http://my-server:9999
It always ends with:
"FATA[0000] error applying metadata
{
"path": "$.args",
"error":…

benams
- 4,308
- 9
- 32
- 74
1
vote
1 answer
What is the reason for having custom headers in Hasura.io?
Why are there custom headers in hasura graphQL endpoint ? Is there any specific reason for its existence ?
I have created two custom headers and tried to access the endpoint from post I was still able to access the endpoint without mentioning the…

imnotiam
- 94
- 8
1
vote
0 answers
Hasura connecting to graphql-engine server failed
I'm migrating hasura from v1.1 (with config v1) to v2.10 (with config v3).
Locally, I had no issue. I followed this guide
When deploying to test, I can't make it work.
I'm using the hasura/graphql-engine.v2.9.10.cli-migrations-v3 image. I recreated…

Clément Drouin
- 187
- 2
- 11
0
votes
0 answers
Hasura Actions: Post request to external api succeded by request Get using the token from the previous Post using the same action
I am able to use hasura via graphql to get the access token using an external api. It's usable via graphql or rest. The problem is that I shouldn't store the token.. How can I use the first action as mutation( to get the token) and request another…

Sara
- 5
- 3
0
votes
2 answers
Problem to export Hasura metadata - FATA[0001] failed to export metadata
Im trying to export the hasura metadata but i'm receiving this error after running the command hasura metadata export :
FATA[0001] failed to export metadata: cannot export actions from metadata: error parsing metadata
object: actions
file:…

Francisco Pessoa
- 21
- 3
0
votes
1 answer
How can I go about using Hasura CLI to export metadata via Windows Active Directory Login?
Here is information about our technical environment:
Hasura GraphQL Current server version: v2.6.2-pro.1
Hasura CLI version 2.15.0
We log onto the Hasura GraphQL Web UI Console using our Windows Active Directory Login (essentially Single-SignOn…

crazyTech
- 1,379
- 3
- 32
- 67
0
votes
1 answer
How to define "unknown", "undefined", or "any" in hasura action
I am creating a hasura action, where output can be an array of object but object can have any key value pair hence I want to keep the output of hasura action as "any"
can you please help?

ps_123
- 1
- 3
0
votes
0 answers
CI testing on github actions
Good day everyone, i have this issue that i have been struggling with since Friday. i'm trying to write a CI test using github actions, but hasura migrate apply keeps throwing this error - level=fatal msg="database not found: error determining…

stanley oguazu
- 31
- 9
0
votes
1 answer
What is the best way to version control the db schema & metadata in Hasura Cloud?
We've ran into an issue where we have the db backed up, but migrations got out of sorts and as a result there are a lot of GraphQL queries in our frontend code that don't match up to the db relationships at all.
I'm new to the project, but it looks…

corysimmons
- 7,296
- 4
- 57
- 65
0
votes
2 answers
How to setup Hasura migrations between DEV and PROD without loosing data
I'm using hasura migration guide to sync two servers - DEV and PROD.
Before we manually transferred the changes (as in 'using UI to copy all the changes'), so now databases are 90% similar.
We decided to set up proper migrations, but based on my…

Amantel
- 659
- 1
- 8
- 18
0
votes
2 answers
How to setup Hasura CLI?
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…

Matthys Ducrocq
- 27
- 5
-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
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?

Seihoon Kim
- 1
- 2