Skip to content

Support Enum into String for hydration#724

Open
AlexandreCarlton wants to merge 1 commit into
atlassian-labs:masterfrom
AlexandreCarlton:support-enum-fields
Open

Support Enum into String for hydration#724
AlexandreCarlton wants to merge 1 commit into
atlassian-labs:masterfrom
AlexandreCarlton:support-enum-fields

Conversation

@AlexandreCarlton
Copy link
Copy Markdown

@AlexandreCarlton AlexandreCarlton commented Apr 28, 2026

In GraphQL, enum types are serialised into String - as such, it is reasonable to expect that we can supply an enum type to a field expecting a String as input.

See also #723 which lays the groundwork for conditional hydration (which would be built off in a subsequent PR).

In GraphQL, `enum` types are serialised into `String` - as such, it is
reasonable to expect that we can supply an `enum` type to a field
expecting a `String` as input.
@atlassian-cla-bot
Copy link
Copy Markdown

Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution.
If your email is listed below, please ensure that you sign the CLA with the same email address.

The following users still need to sign our CLA:
❌AlexandreCarlton

Already signed the CLA? To re-check, try refreshing the page.

@AlexandreCarlton
Copy link
Copy Markdown
Author

I can't seem to sign the CLA - I'm guessing because I must have already signed it to contribute to graphql-java and java-dataloader?

image

@gnawf
Copy link
Copy Markdown
Collaborator

gnawf commented May 4, 2026

Looks good, I think an integration test would be good too. I'll add one and merge later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants