Skip to content

Scalars.GraphQLID#serialize should support serialization of Long  #313

@mindas

Description

@mindas

My underlying object which I am exposing via graphql-java has identifier of type Long.
The object is loaded correctly but when the results are returned, id is omitted.
This happens because of the following lines in Scalars.java:171-178

if (input instanceof String) {
   return input;
}
if (input instanceof Integer) {
   return String.valueOf(input);
}

return null;

Would it not make sense to add handling for Long type here? Thank you!

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