spec/support/star_wars/schema.rb in graphql-1.8.0.pre6 vs spec/support/star_wars/schema.rb in graphql-1.8.0.pre7

- old
+ new

@@ -117,10 +117,10 @@ } do # You can define arguments here and use them in the connection argument :nameIncludes, String, required: false end - field :shipsWithMaxPageSize, max_page_size: 2, function: ShipsWithMaxPageSize.new + field :shipsWithMaxPageSize, "Ships with max page size", max_page_size: 2, function: ShipsWithMaxPageSize.new field :bases, BaseConnectionWithTotalCountType, null: true, connection: true, resolve: ->(obj, args, ctx) { all_bases = Base.where(id: obj.bases) if args[:nameIncludes] all_bases = all_bases.where("name LIKE ?", "%#{args[:nameIncludes]}%")