hasura / hasura/graphql-engine

Query action not showing up in query_root

Open
#9,381 3 comments 1 reaction 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: 2.12.1
CLI Version (for CLI related issue): 2.12.0

### Environment

Docker

### What is the current behaviour?

After creating a new query action, it doesn't get added to the "query_root"

### What is the expected behaviour?

The query should be added to "query_root" automatically after it has been created, just like it does for mutation actions.

### How to reproduce the issue?

1. Using the above-specified versions, setup a new Hasura project.
2. Create a new query action.
3. Try to query the graphql API for the added query action.

### Screenshots or Screencast

![image](https://user-images.githubusercontent.com/49095691/212537801-1681e4e2-c60c-4b49-8eaf-cc1caf467dd7.png)
![Screenshot from 2023-01-15 12-22-24](https://user-images.githubusercontent.com/49095691/212537816-f98444aa-52fe-4dd4-81b0-a9eae2471933.png)

### Keywords

query
action
query action

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with Hasura server 2.12.1 and CLI 2.12.0 by creating a query action, then query the GraphQL API for it in query_root. Trace the query-action creation path and compare it with mutation-action handling. Done means a newly created query action appears in query_root automatically, with the behavior verified through the reproduction steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.