Skip to content

Enum not parsed in reference resolverΒ #8756

@LouisMT

Description

@LouisMT

Product

Hot Chocolate

Version

15.1.10

Link to minimal reproduction

https://github.com/LouisMT/HotChocolate-ReferenceResolverEnum

Steps to reproduce

I have added example queries in the README.

Enums are parsed correctly when used in as a parameter. However when used in a reference resolver, it is always the default value (null when it's nullable, or 0/first enum value otherwise).

What is expected?

I would expect the enum value in the reference resolver to be B.

What is actually happening?

The enum value in the reference resolver is A.

Relevant log output

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