Class: Decidim::Api::MutationType
- Inherits:
-
Types::BaseObject
- Object
- GraphQL::Schema::Object
- Types::BaseObject
- Decidim::Api::MutationType
- Defined in:
- decidim-api/lib/decidim/api/mutation_type.rb
Overview
This type represents the root mutation type of the whole API
Instance Method Summary collapse
Methods inherited from Types::BaseObject
allowed_to?, authorized?, determine_subject_name, local_admin_context, local_context, permission_chain
Instance Method Details
#component(id:) ⇒ Object
15 16 17 |
# File 'decidim-api/lib/decidim/api/mutation_type.rb', line 15 def component(id:) context[:current_organization]&.published_components&.find(id) end |