Skip to content

Long representation in the schema is not coming up as java.lang.Long in the POJOs created and instead coming as String; Is there a specific version with the fix for this? #930

Answered by kobylynskyi
siva54 asked this question in Q&A
Discussion options

You must be logged in to vote

@siva54 this is not supported and will not be until GraphQL specification allows such scalar:
https://graphql.org/learn/schema/#scalar-types
As you can see o the spec above:

 GraphQL comes with a set of default scalar types out of the box:

    Int: A signed 32‐bit integer.
    Float: A signed double-precision floating-point value.
    String: A UTF‐8 character sequence.
    Boolean: true or false.
    ID: The ID scalar type represents a unique identifier, often used to refetch an object or as the key for a cache. The ID type is serialized in the same way as a String; however, defining it as an ID signifies that it is not intended to be human‐readable.

There's no such out-of-the-box scal…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@siva54
Comment options

@siva54
Comment options

Comment options

You must be logged in to vote
1 reply
@siva54
Comment options

Answer selected by kobylynskyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants