Sha256: cba1f47ce9b1503f3d07ace35d626e185c31284e11ea5c18b27236ce76f3d334
Contents?: true
Size: 368 Bytes
Versions: 49
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true GraphQL::INT_TYPE = GraphQL::ScalarType.define do name "Int" description "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1." coerce_input ->(value, _ctx) { value.is_a?(Numeric) ? value.to_i : nil } coerce_result ->(value, _ctx) { value.to_i } default_scalar true end
Version data entries
49 entries across 49 versions & 1 rubygems