Sha256: 689c667de29cfe33b725f1e49b67dcdaf0a1973b27a9f484e6c5685db4bda397
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
# frozen_string_literal: true 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
graphql-1.3.0 | lib/graphql/string_type.rb |