Method: GraphQL::Types::Float.coerce_input
- Defined in:
- lib/graphql/types/float.rb
.coerce_input(value, _ctx) ⇒ Object
8 9 10 |
# File 'lib/graphql/types/float.rb', line 8 def self.coerce_input(value, _ctx) value.is_a?(Numeric) ? value.to_f : nil end |