Sha256: 8e88f63708bbf358251d9fe80abe1653f8eeb6736157fb621622fd61bd732d35
Contents?: true
Size: 251 Bytes
Versions: 12
Compression:
Stored size: 251 Bytes
Contents
GraphQL::BOOLEAN_TYPE = GraphQL::ScalarType.define do # Everything else is nil ALLOWED_INPUTS = [true, false] name "Boolean" coerce_input -> (value) { ALLOWED_INPUTS.include?(value) ? value : nil } coerce_result -> (value) { !!value } end
Version data entries
12 entries across 12 versions & 1 rubygems