lib/rails/graphql/field.rb
# Turn the given value into a JSON string representation
Turn the given value into a JSON string representation
Turn the given value into a JSON string representation
def as_json(value)
        return if value.nil?
        return type_klass.as_json(value) unless array?
        value.map { |part| type_klass.as_json(part) }
      end
def as_json ( value ) return if value . nil? return type_klass . as_json ( value ) unless array? value . map { | part | type_klass . as_json ( part ) } end
Turn the given value into a JSON string representation
Turn the given value into a JSON string representation
value