Method: GraphQL::BaseType#coerce_input
- Defined in:
- lib/graphql/base_type.rb
#coerce_input(value, ctx = nil) ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/graphql/base_type.rb', line 138 def coerce_input(value, ctx = nil) if value.nil? nil else if ctx.nil? warn_deprecated_coerce("coerce_isolated_input") ctx = GraphQL::Query::NullContext end coerce_non_null_input(value, ctx) end end |