lib/rails/graphql/field.rb
# Transforms the given value to its representation in a JSON string
Transforms the given value to its representation in a JSON string
Transforms the given value to its representation in a JSON string
def to_json(value)
        return 'null' if value.nil?
        return type_klass.to_json(value) unless array?
        value.map { |part| type_klass.to_json(part) }
      end
def to_json ( value ) return 'null' if value . nil? return type_klass . to_json ( value ) unless array? value . map { | part | type_klass . to_json ( part ) } end
Transforms the given value to its representation in a JSON string
Transforms the given value to its representation in a JSON string
value