class GraphQL::Schema::IntrospectionSystem::PerFieldProxyResolve
def call(obj, args, ctx)
def call(obj, args, ctx) query_ctx = ctx.query.context # Remove the QueryType wrapper if obj.is_a?(GraphQL::Schema::Object) obj = obj.object end wrapped_object = @object_class.authorized_new(obj, query_ctx) @inner_resolve.call(wrapped_object, args, ctx) end
def initialize(object_class:, inner_resolve:)
def initialize(object_class:, inner_resolve:) @object_class = object_class @inner_resolve = inner_resolve end