apollographql / federation-next

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

impl Display for OpGraphPath #243

Closed TylerBloom closed 7 months ago

TylerBloom commented 7 months ago

This PR addresses Jira ticket FED-20.

Display for OpGraphPath has been implemented by representing the path with an array of edges. The edges are represented with their Debug impl, which can be changed. Currently, this implementation is the same as the debug impl of the edges.

Since the edges are Option<EdgeIndex>>, I am unsure how to represent the None case or if that was a concern at all. If there is a preferred way to represent the edges, I'll gladly change it.