Skip to content

Source Generated DataLoader interface not resolvable #8437

@olevett

Description

@olevett

Product

Hot Chocolate

Version

15.1.7

Link to minimal reproduction

#8374

Steps to reproduce

Similar to #8374

What is expected?

Similar to #8374

What is actually happening?

Similar to #8374

Relevant log output

Additional context

The source generated registration code in HotChocolateTypeModule calls RequestExecutorBuilderExtensions in HotChocolate Core, rather than the GreenDonut ones which where fixed in #8374
https://github.com/ChilliCream/graphql-platform/blob/main/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.DataLoader.cs#L26 and https://github.com/ChilliCream/graphql-platform/blob/main/src/HotChocolate/Core/src/Execution/DependencyInjection/RequestExecutorBuilderExtensions.DataLoader.cs#L48 which means the interface type isn't registered as resolving to the implementation, which then fails when being resolved through the AdHoc registration in https://github.com/ChilliCream/graphql-platform/blob/main/src/GreenDonut/src/GreenDonut/DependencyInjection/DataLoaderServiceCollectionExtensions.cs#L202-L202

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions