class GraphQL::Pundit::Instrumenters::AfterScope::ScopeResolver
Applies the scoping to the passed object
Public Instance Methods
call(root, arguments, context)
click to toggle source
# File lib/graphql-pundit/instrumenters/after_scope.rb, line 15 def call(root, arguments, context) resolver_result = old_resolver.call(root, arguments, context) scope_proc = new_scope(scope) scope_proc.call(resolver_result, arguments, context) end