lib/graphql/relay/global_id_resolve.rb in graphql-1.13.0 vs lib/graphql/relay/global_id_resolve.rb in graphql-1.13.1
- old
+ new
@@ -8,10 +8,10 @@
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
+ type = @type.respond_to?(:graphql_definition) ? @type.graphql_definition(silence_deprecation_warning: true) : @type
ctx.query.schema.id_from_object(obj, type, ctx)
end
end
end
end