You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop (please complete the following information):
macOS Monterey, but issue also visible on the server running Alpine Linux 3.16
Additional context
We've traced this issue to the following function in Apollo Federation, which appears to be a function with exponential time and space complexity:
Thanks for opening this. I'm moving this to the federation repository since anything that can be fixed will be in the federation repository, rather than in the Router itself.
Describe the bug
Attempting to query an interface with many implementations results in an error.
To Reproduce
We have an interface (
FactoryUnit
) with more than 70 implementations. It's defined as follows:We try to run the following query, which gives an error:
Query:
Expected behavior
It should not return an error when querying.
Output
Desktop (please complete the following information):
macOS Monterey, but issue also visible on the server running Alpine Linux 3.16
Additional context
We've traced this issue to the following function in Apollo Federation, which appears to be a function with exponential time and space complexity:
federation/query-graphs-js/src/graphPath.ts
Line 2167 in 92a9dff
It fails when trying to construct an array of length 2^70. Given the comment above
flatCartesianProduct
, it seems that this is a known issue.The text was updated successfully, but these errors were encountered: