hasura / hasura/graphql-engine

field "cars" not found in type: 'query_root' ???????????????

Open
#7,388 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

So my query runs some times, but most of the time I get this error come back and I have no idea why.

I've set all the permissions etc so it is crazy why this is happening?

If I go to Graphiql I get the same error if I enable Relay API, but then I can't fetch the list and aggregate as it only provides the cars_connection query.

I'm SUPER confused as to why this isn't working.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the query in GraphiQL with the Relay API both enabled and disabled, and compare the available fields on query_root. Check how the cars and cars_connection fields are exposed, then verify the fix or explanation against the original query and aggregation request.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.