lib/graphql/schema/union.rb in graphql-2.1.3 vs lib/graphql/schema/union.rb in graphql-2.1.4

- old
+ new

@@ -8,10 +8,10 @@ def inherited(child_class) add_unresolved_type_error(child_class) super end - def possible_types(*types, context: GraphQL::Query::NullContext, **options) + def possible_types(*types, context: GraphQL::Query::NullContext.instance, **options) if types.any? types.each do |t| assert_valid_union_member(t) type_memberships << type_membership_class.new(self, t, **options) end