Sha256: fb301f42d1ebde395007f89f2ccd89d788b38e8509fb506fdf94c15b94141585
Contents?: true
Size: 448 Bytes
Versions: 20
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module GraphQL module Types class Int < GraphQL::Schema::Scalar description "Represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1." def self.coerce_input(value, _ctx) value.is_a?(Numeric) ? value.to_i : nil end def self.coerce_result(value, _ctx) value.to_i end default_scalar true end end end
Version data entries
20 entries across 20 versions & 1 rubygems