Class: ApolloFederation::Any
- Inherits:
-
GraphQL::Schema::Scalar
- Object
- GraphQL::Schema::Scalar
- ApolloFederation::Any
- Defined in:
- lib/apollo-federation/any.rb
Class Method Summary collapse
Class Method Details
.coerce_input(value, _ctx) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/apollo-federation/any.rb', line 9 def self.coerce_input(value, _ctx) # TODO: Should we convert it to a Mash-like object? result = {} # `value` can be an ActionController::Parameters instance value.each_pair do |key, val| result[key.to_sym] = val end result end |