Skip to content

[Federation] __resolveType is not executed #2781

@Pruxis

Description

@Pruxis

When utilising an union or interface, __resolveType resolvers are not executed when passed into a federated schema.

Codesandbox: https://codesandbox.io/s/apollo-server-z8vml?fontsize=14

Currently you can write a 'hack' around it to pass the __typename in your return function yourself. Instead of relying on the interface to have this functionality.

I'll investigate the code what the difference is and why this is the case, so I can PR a solution

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