Sha256: e99cc33977e0b4a8d56910346f6450ba3ac1cd66dc3e9ec5af4e1a0feb0374dd

Contents?: true

Size: 334 Bytes

Versions: 23

Compression:

Stored size: 334 Bytes

Contents

GraphQL::STRING_TYPE = GraphQL::ScalarType.define do
  name "String"
  description "Represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text."

  coerce_result -> (value) { value.to_s }
  coerce_input -> (value) { value.is_a?(String) ? value : nil }
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
graphql-0.19.3 lib/graphql/string_type.rb
graphql-0.19.2 lib/graphql/string_type.rb
graphql-0.19.1 lib/graphql/string_type.rb
graphql-0.19.0 lib/graphql/string_type.rb
graphql-0.18.15 lib/graphql/string_type.rb
graphql-0.18.14 lib/graphql/string_type.rb
graphql-0.18.13 lib/graphql/string_type.rb
graphql-0.18.12 lib/graphql/string_type.rb
graphql-0.18.11 lib/graphql/string_type.rb
graphql-0.18.10 lib/graphql/string_type.rb
graphql-0.18.9 lib/graphql/string_type.rb
graphql-0.18.8 lib/graphql/string_type.rb
graphql-0.18.7 lib/graphql/string_type.rb
graphql-0.18.6 lib/graphql/string_type.rb
graphql-0.18.5 lib/graphql/string_type.rb
graphql-0.18.4 lib/graphql/string_type.rb
graphql-0.18.3 lib/graphql/string_type.rb
graphql-0.18.2 lib/graphql/string_type.rb
graphql-0.18.1 lib/graphql/string_type.rb
graphql-0.18.0 lib/graphql/string_type.rb