Aliases not recognized when federating list responses
sGy1980de opened this issue · 0 comments
sGy1980de commented
Federating list responses does not work as expected.
To illustrate the issue here an example from the tests: TestExecutor_insertIntoListFragmentSpreads
GraphQL query
{
# entry point photos is aliased here
gallery: photos{ # <--Query.services @ serviceA, list
...photosFragment
}
}
fragment photosFragment on Photo {
createdBy {
firstName # <-- User.firstName @ serviceA
address # <-- User.address @ serviceB
}
}
Expected result:
{
"gallery": [
{
"createdBy": {
"address": "address-1",
"firstName": "John",
"id": "1"
}
},
{
"createdBy": {
"address": "address-2",
"firstName": "Jane",
"id": "2"
}
}
]
}
Current result:
{
"gallery": [
{
"createdBy": {
"firstName": "John",
"id": "1"
}
},
{
"createdBy": {
"firstName": "Jane",
"id": "2"
}
}
],
"photos": [
{
"createdBy": {
"address": "address-1"
}
},
{
"createdBy": {
"address": "address-2"
}
}
]
}