"field 'todos' not found in type: 'query_root'"
I dont get this error if query is being run from application
but do get if it is run from Hasura Console
why?
the app is just a copy of nhost demo app
-- this is taken from hasura logs when I access http://localhost:3000/protected/todos page
x-hasura-role user
x-hasura-user-id e2edb294-514b-463a-84fa-4a43e004d09a
x-hasura-user-is-anonymous false
also posted here
If you are using JWT authentication you can't just take the role and user-id from the logs and send those in the headers, you need to use a valid JWT token. The Hasura engine will extract your session variables like the user-id and role from the JWT.
https://discord.com/channels/407792526867693568/1287397028804165642/1287798115339862098