Sha256: 7851d8ef0da80d3c584510afe4b62486dcd50e08f7c49a9d3e9b911e9c1e72ee

Contents?: true

Size: 938 Bytes

Versions: 10

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This type represents a ParticipatoryProcess.
    ParticipatoryProcessGroupType = GraphQL::ObjectType.define do
      name "ParticipatoryProcessGroup"
      description "A participatory process group"

      field :id, !types.ID, "ID of this participatory process group"
      field :name, Decidim::Core::TranslatedFieldType, "The name of this participatory process group"
      field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process group", property: :description
      field :participatoryProcesses, !types[ParticipatoryProcessType] do
        description "Lists all the participatory processes belonging to this group"
        property :participatory_processes
      end
      field :heroImage, types.String, "The hero image for this participatory process group", property: :hero_image
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.23.6 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.5 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.4 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.3 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.2 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.1 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.1.rc1 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.23.0 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.22.0 app/types/decidim/participatory_processes/participatory_process_group_type.rb
decidim-participatory_processes-0.21.0 app/types/decidim/participatory_processes/participatory_process_group_type.rb