lib/graphql/introspection/arguments_field.rb in graphql-1.0.0 vs lib/graphql/introspection/arguments_field.rb in graphql-1.1.0
- old
+ new
@@ -1,4 +1,6 @@
GraphQL::Introspection::ArgumentsField = GraphQL::Field.define do
type !GraphQL::ListType.new(of_type: !GraphQL::Introspection::InputValueType)
- resolve ->(target, a, c) { target.arguments.values }
+ resolve ->(obj, args, ctx) {
+ ctx.warden.arguments(obj)
+ }
end