Sha256: 59bd28f4eef8c57f81bb78ce2a53f6f8ac27e2a0486de16d36f0b1d608235eba

Contents?: true

Size: 118 Bytes

Versions: 3

Compression:

Stored size: 118 Bytes

Contents

GraphQL::BOOLEAN_TYPE = GraphQL::ScalarType.new do |t|
  t.name "Boolean"
  def t.coerce(value)
    !!value
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graphql-0.4.0 lib/graph_ql/boolean_type.rb
graphql-0.3.0 lib/graph_ql/scalars/boolean_type.rb
graphql-0.2.0 lib/graph_ql/types/boolean_type.rb