lib/graphql/introspection/interfaces_field.rb in graphql-1.7.7 vs lib/graphql/introspection/interfaces_field.rb in graphql-1.7.8
- old
+ new
@@ -1,7 +1,8 @@
# frozen_string_literal: true
GraphQL::Introspection::InterfacesField = GraphQL::Field.define do
type -> { types[!GraphQL::Introspection::TypeType] }
+ introspection true
resolve ->(target, a, ctx) {
if target.kind == GraphQL::TypeKinds::OBJECT
ctx.warden.interfaces(target)
else
nil