class ElasticGraph::GraphQL::ScalarCoercionAdapters::LongString
def self.coerce_input(value, ctx)
def self.coerce_input(value, ctx) # Do not allow non-string input, to guard against the value potentially having been rounded off by # the client before it got serialized into a JSON request. return nil unless value.is_a?(::String) Longs.to_ruby_int_in_range(value, LONG_STRING_MIN, LONG_STRING_MAX) end
def self.coerce_result(value, ctx)
def self.coerce_result(value, ctx) Longs.to_ruby_int_in_range(value, LONG_STRING_MIN, LONG_STRING_MAX)&.to_s end