graphql can't support float.NaN
See original GitHub issueHi,this exception is
Can't serialize value (/project/situation/healthSituation/pipelineSituation/sqaleDebtRatio) : Expected type 'Float' but was 'Float'
the java type is float , the value is float.NaN
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Using nullability in GraphQL
By default, every field in GraphQL is nullable, and you can opt in to mark it non-null. In this article, we'll go over...
Read more >javascript - NaN type in GraphQL - Stack Overflow
I'm not sure about graphql, but the value NaN is usually of type number; double or float or so. It's not a distinct...
Read more >Nulls in GraphQL: Cheatsheet - Hasura
Nullability in GraphQL is a controversial topic. Some say constant null checks are a nuisance, while others err on the side of paranoia....
Read more >parseFloat() - JavaScript - MDN Web Docs
The parseFloat function converts its first argument to a string, parses that string as a decimal number literal, then returns a number or...
Read more >GraphQL Is Not a Silver Bullet | HackerNoon
GraphQL, by default, has no support for imports. ... PRODUCTS) hidden: String @join__field(graph: PRODUCTS) reviewsScore: Float!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bbakerman the latest GraphQL specification states, that NaNs should be transformed into nulls(“If result is null (or another internal value similar to null such as undefined or NaN), return null.”). I propose reopening this issue, since right now the java implementation is clearly breaking the specs. UPD: adressed the wrong person at first, now fixed
@bakert oops, my bad, thank you for pointing this 😃