Class: Decidim::Api::MutationType

Inherits:
Types::BaseObject show all
Defined in:
lib/decidim/api/mutation_type.rb

Overview

This type represents the root mutation type of the whole API

Instance Method Summary collapse

Instance Method Details

#component(id:) ⇒ Object



15
16
17
# File 'lib/decidim/api/mutation_type.rb', line 15

def component(id:)
  context[:current_organization]&.published_components&.find(id)
end