Sha256: 71a113bf7df3e2fa6b24928eedf503f5f7d2e08ff32bb3c26f1b8209354c4ef7
Contents?: true
Size: 1.11 KB
Versions: 39
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true module Decidim module Elections # This type represents a result of an answer to an election question. class ElectionResultType < Decidim::Api::Types::BaseObject description "A voting result for an answer" field :id, GraphQL::Types::ID, "The internal ID of this result", null: false field :created_at, Decidim::Core::DateTimeType, "When this result was created", null: true field :updated_at, Decidim::Core::DateTimeType, "When this result was updated", null: true field :value, GraphQL::Types::Int, "The value of the recount", null: false field :result_type, GraphQL::Types::String, "The result type for this result in the closure", null: true, camelize: false field :answer, Decidim::Elections::ElectionAnswerType, "The answer for this result", null: false field :question, Decidim::Elections::ElectionQuestionType, "The question for this result", null: false # field :closurable, [Decidim::Elections::BulletinBoardClosureType, Decidim::Votings::PollingStationClosureType], "The closure for this result", null: false end end end
Version data entries
39 entries across 39 versions & 1 rubygems