Open carldunham opened 3 weeks ago
Note that setting
experimental_query_planner_mode: new
results in a query failure, naturally:
{
"errors": [
{
"message": "value retrieval failed: Federation error: An internal error has occurred, please report this bug to Apollo.\n\nDetails: Cannot merge field selection for field \"Animal.name\" into a field selection for field \"Animal.id\"",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
]
}
Thanks for the report. This is a known issue, I don't think we have a specific time frame in mind for addressing it (potentially after we remove the JS implementation of query planner from the router)
potentially after we remove the JS implementation
But this would be a regression in Rust, no?
I believe JS silently does the wrong thing in this case 🙈 (overwriting the aliased selection)
Indeed it does!
Describe the bug
Demonstrated in https://github.com/carldunham/apollo-router-6222.
Given the attached schema, this query
will succeed, but the logs show
Similar queries will provide correct results and no issues logged:
To Reproduce
Steps to reproduce the behavior:
rover
androuter
you want to test withmake supergraph run
(cd a && make run)
Expected behavior
No issues logged.
Output
See above.
Desktop (please complete the following information):
Additional context
Tested with various recent versions, up to