Skip to content

Commit

Permalink
simplify uniqueness.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac committed Jul 5, 2024
1 parent cc18111 commit 3b50ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/stitching/planner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def extract_locale_selections(
parent_selections.push(*resolver.key.export_nodes) if resolver.key
parent_selections.uniq! do |node|
export_node = node.is_a?(GraphQL::Language::Nodes::Field) && Resolver.export_key?(node.alias)
export_node ? node.alias : node.object_id
export_node ? node.alias : node
end

# E.2) Add a planner step for each new entrypoint location.
Expand Down

0 comments on commit 3b50ee5

Please sign in to comment.