@@ -24,7 +24,7 @@ def perform
2424 end
2525
2626 def steps
27- @steps_by_entrypoint . each_value . select { _1 . selections . any? } . sort_by! ( &:index )
27+ @steps_by_entrypoint . values . sort_by! ( &:index )
2828 end
2929
3030 private
@@ -213,7 +213,7 @@ def extract_locale_selections(
213213 input_selections . each do |node |
214214 case node
215215 when GraphQL ::Language ::Nodes ::Field
216- if node . alias &.start_with? ( TypeResolver ::EXPORT_PREFIX )
216+ if node . alias &.start_with? ( TypeResolver ::EXPORT_PREFIX ) && node != TypeResolver :: TYPENAME_EXPORT_NODE
217217 raise StitchingError , %(Alias "#{ node . alias } " is not allowed because "#{ TypeResolver ::EXPORT_PREFIX } " is a reserved prefix.)
218218 elsif node . name == TYPENAME
219219 locale_selections << node
@@ -238,7 +238,6 @@ def extract_locale_selections(
238238 selection_set = extract_locale_selections ( current_location , field_type , parent_index , node . selections , path , locale_variables )
239239 path . pop
240240
241- next if selection_set . empty?
242241 locale_selections << node . merge ( selections : selection_set )
243242 end
244243
@@ -251,7 +250,6 @@ def extract_locale_selections(
251250 extract_locale_selections ( current_location , fragment_type , parent_index , node . selections , path , locale_variables , selection_set )
252251
253252 unless is_same_scope
254- next if selection_set . empty?
255253 locale_selections << node . merge ( selections : selection_set )
256254 requires_typename = true
257255 end
@@ -267,7 +265,6 @@ def extract_locale_selections(
267265 extract_locale_selections ( current_location , fragment_type , parent_index , fragment . selections , path , locale_variables , selection_set )
268266
269267 unless is_same_scope
270- next if selection_set . empty?
271268 locale_selections << GraphQL ::Language ::Nodes ::InlineFragment . new ( type : fragment . type , selections : selection_set )
272269 end
273270
0 commit comments