@@ -1695,7 +1695,11 @@ def did_you_mean(new_dym = NOT_CONFIGURED)
16951695 # @return [true, false, nil]
16961696 def allow_legacy_invalid_empty_selections_on_union ( new_value = NOT_CONFIGURED )
16971697 if NOT_CONFIGURED . equal? ( new_value )
1698- @allow_legacy_invalid_empty_selections_on_union
1698+ if defined? ( @allow_legacy_invalid_empty_selections_on_union )
1699+ @allow_legacy_invalid_empty_selections_on_union
1700+ else
1701+ find_inherited_value ( :allow_legacy_invalid_empty_selections_on_union )
1702+ end
16991703 else
17001704 @allow_legacy_invalid_empty_selections_on_union = new_value
17011705 end
@@ -1726,7 +1730,11 @@ def legacy_invalid_empty_selections_on_union(query)
17261730 # @return [true, false, nil]
17271731 def allow_legacy_invalid_return_type_conflicts ( new_value = NOT_CONFIGURED )
17281732 if NOT_CONFIGURED . equal? ( new_value )
1729- @allow_legacy_invalid_return_type_conflicts
1733+ if defined? ( @allow_legacy_invalid_return_type_conflicts )
1734+ @allow_legacy_invalid_return_type_conflicts
1735+ else
1736+ find_inherited_value ( :allow_legacy_invalid_return_type_conflicts )
1737+ end
17301738 else
17311739 @allow_legacy_invalid_return_type_conflicts = new_value
17321740 end
@@ -1774,7 +1782,11 @@ def legacy_invalid_return_type_conflicts(query, type1, type2, node1, node2)
17741782 # complexity_cost_calculation_mode(:compare)
17751783 def complexity_cost_calculation_mode ( new_mode = NOT_CONFIGURED )
17761784 if NOT_CONFIGURED . equal? ( new_mode )
1777- @complexity_cost_calculation_mode
1785+ if defined? ( @complexity_cost_calculation_mode )
1786+ @complexity_cost_calculation_mode
1787+ else
1788+ find_inherited_value ( :complexity_cost_calculation_mode )
1789+ end
17781790 else
17791791 @complexity_cost_calculation_mode = new_mode
17801792 end
0 commit comments