apollographql / federation-next

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

Add/improve some Debug impls #267

Closed goto-bus-stop closed 4 months ago

goto-bus-stop commented 4 months ago

The derived Debug impl for GraphPath included the whole query graph, which made it untenable to read. This patch removes that field from the Debug representation.

OpGraphPaths have a terse string representation. In other structures that contain OpGraphPaths, I think the terse representation is preferable. This adds Debug impls to use the terse representation in those cases.

This has no usage sites, but it's handy for println debugging.