You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So yay for graphql's spec being extra annoying but: https://spec.graphql.org/June2018/#sec-Int
specifies integers as having only 32 bit range. (cause something something javascript)
So yay for graphql's spec being extra annoying but:
https://spec.graphql.org/June2018/#sec-Int
specifies integers as having only 32 bit range. (cause something something javascript)
Golangs Graphql deals with this by silently converting these values to nil:
https://github.com/graphql-go/graphql/blob/1a9db8859ef57c2821bbd47b0db9a1a09e617f41/scalars.go#L61
And if the feels aren't optional, they get a NonNull modifier:
go-ipld-graphql/gen/tmpl/struct.tmpl
Line 9 in 00e0c87
Which then conveniently produces a serialization error.
Easy way to check with the dealbot: Run this query -- https://lb.mainnet-us-east-1.filops.net/mainnet-dealbot-graphql/graphql?query=query%20{%20Tasks%20{All%20{%20StorageTask%20{%20Size%20}%20}}%20} -- all I'm doing is asking for the StorageTasks.Size value
I have no idea what the proper solution is -- make them floats? Custom Scalar? I think at least float will work.
The text was updated successfully, but these errors were encountered: