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
Describe the bug
Below a simplified description of the use case we're experiencing.
The problem: Query 1 and query 2 give a different response on 'explicit' field.
When looking at what apollo router sends to the subgraphs; The router send a request to schema 1 to fetch the attributes for
Query 1: with the arguments required by the @requires definition in the schema (@requires(fields:"attributes(keys:\"Erotic Content\")}")})
Query 2: with the arguments of the 'attributes' field.
Not sure exactly how it would work but the only way for this to work properly is if apollo would send 2 seperate queries for fetching the attributes field with different arguments
The text was updated successfully, but these errors were encountered:
rickbijkerk
changed the title
@requires on field with argument gives weird behaviour
Adding a field changes the returned value of another (@requires directive with arguments involved)
Apr 24, 2024
This appears to be a federation model or query planning consideration more than it is anything Router-specific. If this changes, the Router could consume any updated federation and query planner support for it, but for now I'll transfer this over to the federation repository.
Describe the bug
Below a simplified description of the use case we're experiencing.
The problem: Query 1 and query 2 give a different response on '
explicit
' field.When looking at what apollo router sends to the subgraphs; The router send a request to schema 1 to fetch the attributes for
Query 1: with the arguments required by the
@requires
definition in the schema (@requires(fields:"attributes(keys:\"Erotic Content\")}")}
)Query 2: with the arguments of the 'attributes' field.
Not sure exactly how it would work but the only way for this to work properly is if apollo would send 2 seperate queries for fetching the attributes field with different arguments
Query 1
Query 2
Schema 1 (product)
Schema 2 (product enrichment)
Apollo router:
The text was updated successfully, but these errors were encountered: