Sha256: 4225382ea739447d3102793b0ef0b6e6c7cb379bf86d5df5e50bf3c42e6e3183
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 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) { value.is_a?(Numeric) ? value.to_i : nil } coerce_result ->(value) { value.to_i } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.3.0 | lib/graphql/int_type.rb |