apollographql / federation-next

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

Implement FetchDependencyGraph processor traversal #261

Closed goto-bus-stop closed 4 months ago

goto-bus-stop commented 4 months ago

This ports the process* functions from FetchDependencyGraph. All the process functions are renamed from process*Group* to process*Node*. Internal types like DeferredGroup are renamed to DeferredNode.

I also implemented create_initial_options which lets us actually get to a todo!() again instead of early returning an empty plan.

VariableConditions had a documented invariant that it's never empty, but the type's API didn't uphold the invariant and allowed outside access to internals. Now the conditions module and the public API uphold this invariant.