Skip to content

Possible type leaking when serializing java -> graphql #276

Closed
@ieugen

Description

@ieugen

Hi,

I came across some warning that I ended up fixing with a PR in graphql-java, however it turns out that the issue might be coming from this library.

Could someone familiar with this code have a look and see if this is the case. I would like to push the fix upstream to any project.

TL;DR:
I got errors like graphql.schema.CoercingSerializeException: Invalid input for Enum 'SortBy'. Unknown value 'EnumValue{name='createdOn'}' .

It seems that my fix - checking for EnumValue inside serialize might not be the right place to do it since graphql api should not reach that point.

The two PR's and associated discussions are:
graphql-java/graphql-java#1531
graphql-java/graphql-java#1533
graphql-java/graphql-java#1532

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions