Skip to content

Provide GraphQLContext and ResolveInfo in Federated Entity Resolvers #2482

Open
@Maxwell2022

Description

@Maxwell2022

Firstly just wanted to acknowledge the great work that was done recently to push for Federation 2 support and Federated tracing! 🙏👏

Describe the bug

It seems the GraphQLContext and the ResolveInfo are not injected in the Entity resolver for federated graphs.

Expected behavior/Solution

According to Apollo Documentation (Apollo Server), the Entity resolver should receive few arguments along side the entity representation.

image

Steps to reproduce

Lighthouse Version

latest master branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA feature or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions