Sha256: 3e79f6e13d20db41bfe87f3041a14ad6e26ede75bb8d505b7045b79cf38cb9ec

Contents?: true

Size: 179 Bytes

Versions: 12

Compression:

Stored size: 179 Bytes

Contents

GraphQL::STRING_TYPE = GraphQL::ScalarType.define do
  name "String"
  coerce_result -> (value) { value.to_s }
  coerce_input -> (value) { value.is_a?(String) ? value : nil }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
graphql-0.16.1 lib/graphql/string_type.rb
graphql-0.16.0 lib/graphql/string_type.rb
graphql-0.15.3 lib/graphql/string_type.rb
graphql-0.15.2 lib/graphql/string_type.rb
graphql-0.14.2 lib/graphql/string_type.rb
graphql-0.15.1 lib/graphql/string_type.rb
graphql-0.15.0 lib/graphql/string_type.rb
graphql-0.14.1 lib/graphql/string_type.rb
graphql-0.14.0 lib/graphql/string_type.rb
graphql-0.13.0 lib/graphql/string_type.rb
graphql-0.12.1 lib/graphql/string_type.rb
graphql-0.12.0 lib/graphql/string_type.rb