Sha256: 503d270543f453fb04d67058a70f3e639daca3e18b185f3629bc522ed8a70673

Contents?: true

Size: 1.43 KB

Versions: 50

Compression:

Stored size: 1.43 KB

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    class DebateType < Decidim::Api::Types::BaseObject
      implements Decidim::Core::CategorizableInterface
      implements Decidim::Comments::CommentableInterface
      implements Decidim::Core::AuthorableInterface
      implements Decidim::Core::ScopableInterface

      description "A debate"

      field :id, GraphQL::Types::ID, "The internal ID for this debate", null: false
      field :title, Decidim::Core::TranslatedFieldType, "The title for this debate", null: true
      field :description, Decidim::Core::TranslatedFieldType, "The description for this debate", null: true
      field :instructions, Decidim::Core::TranslatedFieldType, "The instructions for this debate", null: true
      field :start_time, Decidim::Core::DateTimeType, "The start time for this debate", null: true
      field :end_time, Decidim::Core::DateTimeType, "The end time for this debate", null: true
      field :image, GraphQL::Types::String, "The image of this debate", null: true
      field :created_at, Decidim::Core::DateTimeType, "When this debate was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "When this debate was updated", null: true
      field :information_updates, Decidim::Core::TranslatedFieldType, "The information updates for this debate", null: true
      field :reference, GraphQL::Types::String, "The reference for this debate", null: true
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-debates-0.29.1 lib/decidim/api/debate_type.rb
decidim-debates-0.28.4 lib/decidim/api/debate_type.rb
decidim-debates-0.27.9 lib/decidim/api/debate_type.rb
decidim-debates-0.29.0 lib/decidim/api/debate_type.rb
decidim-debates-0.28.3 lib/decidim/api/debate_type.rb
decidim-debates-0.27.8 lib/decidim/api/debate_type.rb
decidim-debates-0.29.0.rc4 lib/decidim/api/debate_type.rb
decidim-debates-0.29.0.rc3 lib/decidim/api/debate_type.rb
decidim-debates-0.29.0.rc2 lib/decidim/api/debate_type.rb
decidim-debates-0.29.0.rc1 lib/decidim/api/debate_type.rb
decidim-debates-0.28.2 lib/decidim/api/debate_type.rb
decidim-debates-0.27.7 lib/decidim/api/debate_type.rb
decidim-debates-0.28.1 lib/decidim/api/debate_type.rb
decidim-debates-0.27.6 lib/decidim/api/debate_type.rb
decidim-debates-0.26.10 lib/decidim/api/debate_type.rb
decidim-debates-0.26.9 lib/decidim/api/debate_type.rb
decidim-debates-0.28.0 lib/decidim/api/debate_type.rb
decidim-debates-0.27.5 lib/decidim/api/debate_type.rb
decidim-debates-0.28.0.rc5 lib/decidim/api/debate_type.rb
decidim-debates-0.28.0.rc4 lib/decidim/api/debate_type.rb