[Bug] Entities Response for Apollo Federation is out of order #8120
Labels
area/graphql
Issues related to GraphQL support on Dgraph.
community
Issue or PR created by the community.
kind/bug
Something is broken.
Stale
Unfortunately I don't know the minimal amount of data required to trigger this behavior but basically the data returned in
_entities
is not in the same order as the objects in myrepresentations
input. This causes the data to mismatch with the ID when using Dgraph as a subgraph.Here is an example:
It does look like the logic attempts to order the entities correctly as per here: https://github.com/dgraph-io/dgraph/blob/master/graphql/resolve/resolver.go#L407
Seems for some reason this fails for me. I suppose I will tag @minhaj-shakeel as it seems this was written by them.
Additionally, I will try to get a local dev environment set up for Dgraph tomorrow to see if I can fix this bug though I have a feeling I may struggle getting that going.
The text was updated successfully, but these errors were encountered: