Sha256: d7acff9566547582f7a63ba0506a85d9ab4ddcee7575259445b5f681c17a85a2

Contents?: true

Size: 901 Bytes

Versions: 10

Compression:

Stored size: 901 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    AmendmentType = GraphQL::ObjectType.define do
      name "Amendment"
      description "An amendment"

      field :id, !types.ID, "The id of this amendment"
      field :state, !types.String, "The status of this amendment"
      field :amender, !Decidim::Core::AuthorInterface, "The author of this amendment"

      field :amendableType, !types.String do
        description "Type of the amendable object"
        property :decidim_amendable_type
      end
      field :emendationType, !types.String do
        description "Type of the emendation object"
        property :decidim_emendation_type
      end

      field :amendable, !AmendableEntityInterface, "The original amended resource (currently, a proposal only)"
      field :emendation, !AmendableEntityInterface, "The emendation (currently, a proposal only)"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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