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