Open rickbijkerk opened 7 months ago
Updates description after some more testing
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: