spec/support/dummy/schema.rb in graphql-1.5.5 vs spec/support/dummy/schema.rb in graphql-1.5.6
- old
+ new
@@ -223,10 +223,10 @@
@arguments = self.class.arguments.merge({"id" => GraphQL::Argument.define(name: "id", type: id_type)})
end
def call(obj, args, ctx)
id_string = args["id"].to_s # Cheese has Int type, Milk has ID type :(
- id, item = @data.find { |id, item| id.to_s == id_string }
+ _id, item = @data.find { |id, item| id.to_s == id_string }
item
end
end
class GetSingleton < GraphQL::Function