Skip to content

No way to add reference resolver to interface #7699

@rdb00

Description

@rdb00

Product

Hot Chocolate

Version

13.6.1

Link to minimal reproduction

Steps to reproduce

Create a new InterfaceType<> class and create the Configure method. On IInterfaceTypeDescriptor, there is no Key() method to add a key and reference resolver to the interface like there is on IObjectTypeDescriptor.

What is expected?

Because @interfaceObject is supported, I would expect there to be the Key() method to add the key and a reference resolver (which is required to use @interfaceObject).

What is actually happening?

No way to add a reference resolver, resulting in an error from Apollo when attempting to resolve the interface. This would be a feature request if not for the fact that @interfaceObject is supposed to be supported. But maybe there is another way to register a reference resolver to the interface that isn't documented.

Relevant log output

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions