Sha256: dcbba9fb4da1b0f289673142e221c0d6e96beb8ac97a4af119778b6d7df463bc

Contents?: true

Size: 396 Bytes

Versions: 28

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    # This interface represents a commentable object.
    AttachableInterface = GraphQL::InterfaceType.define do
      name "AttachableInterface"
      description "An interface that can be used in objects with attachments"

      field :attachments, !types[Decidim::Core::AttachmentType], "This object's attachments"
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
decidim-core-0.13.0 lib/decidim/api/attachable_interface.rb
decidim-core-0.12.1 lib/decidim/api/attachable_interface.rb
decidim-core-0.13.0.pre1 lib/decidim/api/attachable_interface.rb
decidim-core-0.12.0 lib/decidim/api/attachable_interface.rb
decidim-core-0.11.2 lib/decidim/api/attachable_interface.rb
decidim-core-0.12.0.pre lib/decidim/api/attachable_interface.rb
decidim-core-0.11.1 lib/decidim/api/attachable_interface.rb
decidim-core-0.11.0.pre1 lib/decidim/api/attachable_interface.rb