lib/rails/graphql/request/helpers/value_writers.rb
# Write a value with the correct serialize mode. Validate the output
# but do not use array mode because this method will be called
# multiple times inside of an array.
Write a value with the correct serialize mode. Validate the output
but do not use array mode because this method will be called
multiple times inside of an array.
Write a value with the correct serialize mode . Validate the output but do not use array mode because this method will be called multiple times inside of an array .
def write_leaf(value)
            validate_output!(value)
            return response.safe_add(gql_name, nil) if value.nil?
            response.serialize(type_klass, gql_name, value.itself)
          end
def write_leaf ( value ) validate_output! ( value ) return response . safe_add ( gql_name , nil ) if value . nil? response . serialize ( type_klass , gql_name , value . itself ) end
Write a value with the correct serialize mode.
Write a value with the correct serialize mode .
# Necessary call #itself to loose the dynamic reference
value