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
In apollo-parser we have a few From implementations to get Rust types out of AST nodes, like an i32 from an IntValue. But these can sometimes panic, which is not expected for From, especially since it's dealing with user input that can error in a totally normal run of a program. These should be changed to TryFrom.
Also, we can add a conversion from IntValue to f64, which is supported by the GraphQL spec.
The text was updated successfully, but these errors were encountered:
In apollo-parser we have a few
From
implementations to get Rust types out of AST nodes, like ani32
from anIntValue
. But these can sometimes panic, which is not expected forFrom
, especially since it's dealing with user input that can error in a totally normal run of a program. These should be changed toTryFrom
.Also, we can add a conversion from
IntValue
tof64
, which is supported by the GraphQL spec.The text was updated successfully, but these errors were encountered: