apollographql / federation-next

Moved to the Router repository
https://github.com/apollographql/router/tree/dev/apollo-federation
Other
19 stars 1 forks source link

Graph Traversal: Handle non-collecting type-preserving edges #263

Closed sachindshinde closed 4 months ago

sachindshinde commented 4 months ago

This PR ports advancePathWithNonCollectingAndTypePreservingTransitions() and its downstream methods.

There is one TODO introduced about populating dead-end information, but it's only necessary for composition (tracked in FED-173).

goto-bus-stop commented 4 months ago

I merged in the changes from #261 and #226 that have landed in main. Calling build_query_plan with this PR now yields:

Was not able to find any options for userById(id: 1) { name email }: This shouldn’t have happened.