lib/graphql/introspection/interfaces_field.rb in graphql-1.7.14 vs lib/graphql/introspection/interfaces_field.rb in graphql-1.8.0.pre1
- old
+ new
@@ -1,8 +1,7 @@
# 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