Sha256: f71b65046e96e8af9ed8a2938ff6707e55640cacd662d9e5a15b00f43a4b3622
Contents?: true
Size: 930 Bytes
Versions: 9
Compression:
Stored size: 930 Bytes
Contents
# frozen_string_literal: true module Decidim module Elections # This type represents an answer to an election question. # The name is different from the model because to enforce consistency with Question type name. ElectionAnswerType = GraphQL::ObjectType.define do interfaces [ -> { Decidim::Core::AttachableInterface }, -> { Decidim::Core::TraceableInterface } ] name "ElectionAnswer" description "An answer for an election's question" field :id, !types.ID, "The internal ID of this answer" field :title, !Decidim::Core::TranslatedFieldType, "The title for this answer" field :description, Decidim::Core::TranslatedFieldType, "The description for this answer" field :weight, types.Int, "The ordering weight for this answer" field :proposals, types[Decidim::Proposals::ProposalType], "The proposals related to this answer" end end end
Version data entries
9 entries across 9 versions & 1 rubygems