Sha256: 6bba740552ffec6018a06bd3110781d8938c88ec0ade2e5526e7d48fdb806ad0
Contents?: true
Size: 1021 Bytes
Versions: 5
Compression:
Stored size: 1021 Bytes
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This type represents a ParticipatoryProcess. class ParticipatoryProcessGroupType < Decidim::Api::Types::BaseObject description "A participatory process group" field :id, GraphQL::Types::ID, "ID of this participatory process group", null: false field :title, Decidim::Core::TranslatedFieldType, "The title of this participatory process group", null: true field :description, Decidim::Core::TranslatedFieldType, "The description of this participatory process group", null: true field :participatory_processes, [Decidim::ParticipatoryProcesses::ParticipatoryProcessType, { null: true }], description: "Lists all the participatory processes belonging to this group", null: false field :hero_image, GraphQL::Types::String, "The hero image for this participatory process group", null: true def hero_image object.attached_uploader(:hero_image).url end end end end
Version data entries
5 entries across 5 versions & 1 rubygems