class GraphQL::Relay::GlobalIdResolve
def call(obj, args, ctx)
def call(obj, args, ctx) if obj.is_a?(GraphQL::Schema::Object) obj = obj.object end type = @type.respond_to?(:graphql_definition) ? @type.graphql_definition : @type ctx.query.schema.id_from_object(obj, type, ctx) end
def initialize(type:)
def initialize(type:) @type = type end