Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query action not showing up in query_root #9381

Open
quyumkehinde opened this issue Jan 15, 2023 · 3 comments
Open

Query action not showing up in query_root #9381

quyumkehinde opened this issue Jan 15, 2023 · 3 comments
Labels
k/bug Something isn't working

Comments

@quyumkehinde
Copy link

quyumkehinde commented Jan 15, 2023

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
Screenshot from 2023-01-15 12-22-24

Keywords

query
action
query action

@quyumkehinde quyumkehinde added the k/bug Something isn't working label Jan 15, 2023
@harishnair96
Copy link
Contributor

Hello @quyumkehinde, we were unable to reproduce this issue. Are you using any roles when you query for this field? Are you sure that role has the permission to query that action?

@quyumkehinde
Copy link
Author

quyumkehinde commented Jan 18, 2023

@harishnair96 I can confirm that both admin and users have access to query the field. Also, I'm using the admin console to test but it's the exact same thing if I try running the query as a user.

image

@nizamani
Copy link

nizamani commented Mar 6, 2023

+1
This is related to Hasura actions not being available in relay when defined as queries. I created related issue with more information here:
#9480
Please feel free to merge if you think my issue is duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants