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
Hello, I think we just hit an edge case where the query planner fails to create a plan for a query that uses @skip or @include directives for a field that has @requires and also accepts inputs.
To Reproduce
Steps to reproduce the behavior:
We will need 2 subgraphs, in this example, product and shipping.
"Fields \"dimensions\" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional."
When using the Rust query planner:
"value retrieval failed: Federation error: An internal error has occurred, please report this bug to Apollo.\n\nDetails: Query planning produced an invalid subgraph operation.\nError: operation must not provide conflicting field arguments for the same name `dimensions`\n"
Expected behavior
Ideally this should not fail. Also, when removing either the unitType input or the @include directive from the query it works just fine.
Desktop (please complete the following information):
OS: macOS Sonoma 14.6.1
Router Version: v1.57.0
Off-topic but also related (Maybe this deserves another dedicated issue)
We would love to be able to tell router to use the unitType input (when available in the query) when fetching the field to fulfill the the @requires directive, example:
So both requested dimensions field and the shippingEstimate would use the same input defined by the client. Currently we can't guarantee that the dimensions used to calculate the shippingEstimate will use the correct unitType.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hello, I think we just hit an edge case where the query planner fails to create a plan for a query that uses
@skip
or@include
directives for a field that has@requires
and also accepts inputs.To Reproduce
Steps to reproduce the behavior:
product
andshipping
.Product Schema:
Shipping Schema:
The supergraph:
Expected behavior
Ideally this should not fail. Also, when removing either the
unitType
input or the@include
directive from the query it works just fine.Desktop (please complete the following information):
Off-topic but also related (Maybe this deserves another dedicated issue)
We would love to be able to tell router to use the
unitType
input (when available in the query) when fetching the field to fulfill the the@requires
directive, example:So both requested
dimensions
field and theshippingEstimate
would use the same input defined by the client. Currently we can't guarantee that thedimensions
used to calculate theshippingEstimate
will use the correctunitType
.The text was updated successfully, but these errors were encountered: