class GraphQL::Types::Boolean
Public Class Methods
(untyped value, GraphQL::Query::Context _ctx) → bool?
Source
# File lib/graphql/types/boolean.rb, line 9 def self.coerce_input(value, _ctx) (value == true || value == false) ? value : nil end
(untyped value, GraphQL::Query::Context _ctx) → bool
Source
# File lib/graphql/types/boolean.rb, line 14 def self.coerce_result(value, _ctx) !!value end