Sha256: f94d397b8acc7d53137b033305c2ac009a29728a607aea911a5d415f0d5b56eb
Contents?: true
Size: 393 Bytes
Versions: 49
Compression:
Stored size: 393 Bytes
Contents
# frozen_string_literal: true GraphQL::FLOAT_TYPE = GraphQL::ScalarType.define do name "Float" description "Represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point)." coerce_input ->(value, _ctx) { value.is_a?(Numeric) ? value.to_f : nil } coerce_result ->(value, _ctx) { value.to_f } default_scalar true end
Version data entries
49 entries across 49 versions & 1 rubygems