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
Use the shorter version of ActionPolicy::GraphQL::Behaviour to make it work:
module Types
module Base
class Resolver < ::GraphQL::Schema::Resolver
include ActionPolicy::Behaviour
include ActionPolicy::Behaviours::ThreadMemoized
include ActionPolicy::Behaviours::Memoized
include ActionPolicy::Behaviours::Namespaced
authorize :user, through: :current_user
def current_user
context[:current_user]
end
end
end
end
Would be great if it will be supported out of the box.
The text was updated successfully, but these errors were encountered:
Use the shorter version of
ActionPolicy::GraphQL::Behaviour
to make it work:Would be great if it will be supported out of the box.
The text was updated successfully, but these errors were encountered: