Skip to content

Commit 8e8c6f3

Browse files
committed
more ops.
1 parent d680987 commit 8e8c6f3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/graphql/stitching/planner.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ def add_step(
8585
resolver: nil
8686
)
8787
# coalesce repeat parameters into a single entrypoint
88-
entrypoint = [parent_index, location, parent_type.graphql_name, resolver&.key&.to_definition, "#", *path].join("/")
88+
entrypoint = String.new
89+
entrypoint << parent_index.to_s << "/" << location << "/" << parent_type.graphql_name
90+
entrypoint << "/" << (resolver&.key&.to_s || "") << "/#"
91+
path.each { entrypoint << "/" << _1 }
92+
8993
step = @steps_by_entrypoint[entrypoint]
9094
next_index = step ? parent_index : @planning_index += 1
9195

0 commit comments

Comments
 (0)