class GraphQL::Types::BigInt
Public Class Methods
Source
# File lib/graphql/types/big_int.rb, line 9 def self.coerce_input(value, _ctx) value && parse_int(value) rescue ArgumentError nil end
Source
# File lib/graphql/types/big_int.rb, line 15 def self.coerce_result(value, _ctx) value.to_i.to_s end
Source
# File lib/graphql/types/big_int.rb, line 19 def self.parse_int(value) value.is_a?(Numeric) ? value : Integer(value, 10) end