Skip to content

Can _entities representations be duplicated? #667

Open
@robross0606

Description

@robross0606

When a federation _entities request comes from a supergraph down to a server fulling a subgraph, is it expected/possible that the same entity could be requested many times? We had expected the supergraph to be smart enough to deduplicate entity requests based upon __typename and @key and not request the same representation multiple times in a single batch. However, we do not see this detail listed anywhere, even though it could be incredibly inefficient to request the same thing over and over again. I also see in several documented spots that "order matters" when fulfilling _entities requests, so now we're wondering if the system is wired for inefficiency and the same entity could be requested for fulfillment from the supergraph multiple times.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions