lib/graph_ql/introspection/interfaces_field.rb in graphql-0.4.0 vs lib/graph_ql/introspection/interfaces_field.rb in graphql-0.5.0
- old
+ new
@@ -1,5 +1,5 @@
-GraphQL::Introspection::InterfacesField = GraphQL::Field.new do |f, type|
- f.description "Interfaces which this object implements"
- f.type -> { !type[!GraphQL::Introspection::TypeType] }
- f.resolve -> (target, a, c) { target.kind.object? ? target.interfaces : nil }
+GraphQL::Introspection::InterfacesField = GraphQL::Field.define do
+ description "Interfaces which this object implements"
+ type -> { !types[!GraphQL::Introspection::TypeType] }
+ resolve -> (target, a, c) { target.kind.object? ? target.interfaces : nil }
end