Sha256: a56e14e35ff41f24ad0dcf97d0f84cfef5df48a5e6058419120092255ea6f314

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    AgendaType = GraphQL::ObjectType.define do
      name "MeetingAgenda"
      description "A meeting agenda"

      field :id, !types.ID, "The ID for the agenda"
      field :title, Decidim::Core::TranslatedFieldType, "The title for the agenda"
      field :items, !types[AgendaItemType], "Items and sub-items of the agenda", property: :agenda_items
      # probably useful in the future, when handling user permissions
      # field :visible, !types.Boolean, "Whether this minutes is public or not", property: :visible

      field :createdAt, Decidim::Core::DateTimeType do
        description "The date and time this agenda was created"
        property :created_at
      end
      field :updatedAt, Decidim::Core::DateTimeType do
        description "The date and time this agenda was updated"
        property :updated_at
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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