Sha256: 35e708e24b2080bdfbe0dc3d8e895740b0f437bb313430fc79a4fc2d3144fc9d
Contents?: true
Size: 347 Bytes
Versions: 15
Compression:
Stored size: 347 Bytes
Contents
# frozen_string_literal: true module GraphQL module Relay class GlobalIdResolve def initialize(type:) @type = type end def call(obj, args, ctx) if obj.is_a?(GraphQL::Schema::Object) obj = obj.object end ctx.query.schema.id_from_object(obj, @type, ctx) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems