Sha256: 88815c1e26c7c7d1e1598866d08541c8cefb1b1fd23ce863eb0cabe95c475093

Contents?: true

Size: 478 Bytes

Versions: 19

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    ComponentInterface = GraphQL::InterfaceType.define do
      name "ComponentInterface"
      description "This interface is implemented by all components that belong into a Participatory Space"

      field :id, !types.ID, "The Component's unique ID"

      field :name, !TranslatedFieldType, "The name of this component."

      resolve_type ->(obj, _ctx) { obj.manifest.query_type.constantize }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-core-0.15.2 lib/decidim/api/component_interface.rb
decidim-core-0.15.1 lib/decidim/api/component_interface.rb
decidim-core-0.15.0 lib/decidim/api/component_interface.rb
decidim-core-0.14.4 lib/decidim/api/component_interface.rb
decidim-core-0.14.3 lib/decidim/api/component_interface.rb
decidim-core-0.14.2 lib/decidim/api/component_interface.rb
decidim-core-0.14.1 lib/decidim/api/component_interface.rb
decidim-core-0.13.1 lib/decidim/api/component_interface.rb
decidim-core-0.12.2 lib/decidim/api/component_interface.rb
decidim-core-0.13.0 lib/decidim/api/component_interface.rb
decidim-core-0.12.1 lib/decidim/api/component_interface.rb
decidim-core-0.13.0.pre1 lib/decidim/api/component_interface.rb
decidim-core-0.12.0 lib/decidim/api/component_interface.rb
decidim-core-0.11.2 lib/decidim/api/component_interface.rb
decidim-core-0.12.0.pre lib/decidim/api/component_interface.rb
decidim-core-0.11.1 lib/decidim/api/component_interface.rb
decidim-core-0.11.0.pre1 lib/decidim/api/component_interface.rb
decidim-core-0.10.1 lib/decidim/api/component_interface.rb
decidim-core-0.10.0 lib/decidim/api/component_interface.rb