I'd like to request a feature of adding a "super" query that accepts event handlers where other queries can inherit from so that I don't have to add the same event handler to each query. In the event handler, it should allow referencing the query that called it through a variable called
self or something.
In my app, we need the user to be logged in to access the GraphQL API. If the user is not logged in, any request to our GraphQL API will fail with an error that states the user is not authenticated. So when any of the GraphQL requests fail with the unauthenticated error, I want to show the Login screen. At the moment, I have to add the same event handler to each query and call the same function with the query as an arg for this to work.