You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using graphql-ruby 1.8.x, I cannot rescue errors from queries as I do for mutations due to batching and its Promises. How can i Handle that ?
for mutation this is working :
classMySchema < GraphQL::Schemaenable_preloadingmutationMutations::RootqueryQueries::Rootrescue_from(Pundit::NotAuthorizedError){raiseGraphQL::ExecutionError,"You are forbidden to access this field."}end