Class: Decidim::Api::ComponentMutationType
- Inherits:
-
GraphQL::Schema::Union
- Object
- GraphQL::Schema::Union
- Decidim::Api::ComponentMutationType
- Defined in:
- decidim-api/lib/decidim/api/component_mutation_type.rb
Class Method Summary collapse
Class Method Details
.resolve_type(obj, _ctx) ⇒ Object
10 11 12 13 14 15 16 |
# File 'decidim-api/lib/decidim/api/component_mutation_type.rb', line 10 def self.resolve_type(obj, _ctx) mod = obj.manifest_name.camelize "Decidim::#{mod}::#{mod}MutationType".constantize rescue NameError Rails.logger.warn("Mutation type not found for #{mod}: #{e.}") nil end |