class ApolloFederation::Any
Public Class Methods
coerce_input(value, _ctx)
click to toggle source
# 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