-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aliasing a field to a @key field name yields Rust query planner error #6222
Comments
Note that setting
results in a query failure, naturally:
|
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) |
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
The text was updated successfully, but these errors were encountered: