spec/fixtures/upgrader/starrable.original.rb in graphql-1.8.0.pre10 vs spec/fixtures/upgrader/starrable.original.rb in graphql-1.8.0.pre11

- old
+ new

@@ -7,14 +7,17 @@ description "Things that can be starred." global_id_field :id field :viewerHasStarred, !types.Boolean do + argument :preceedsConnectionMethod, types.Boolean description "Returns a boolean indicating whether the viewing user has starred this starrable." resolve ->(object, arguments, context) do if context[:viewer] - context[:viewer].starred?(object) + ->(test_inner_proc) do + context[:viewer].starred?(object) + end else false end end end