Sha256: e4c186bac1be8c064d909806538d6972a9d9aeaeac9574a5c07637c1762318ce

Contents?: true

Size: 502 Bytes

Versions: 37

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class AttachmentType < Decidim::Api::Types::BaseObject
      description "A file attachment"

      field :url, GraphQL::Types::String, "The url of this attachment", null: false
      field :type, GraphQL::Types::String, "The type of this attachment", method: :file_type, null: false
      field :thumbnail, GraphQL::Types::String, "A thumbnail of this attachment, if it's an image.", method: :thumbnail_url, null: true
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-core-0.27.9 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.8 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.7 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.6 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.10 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.9 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.5 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.8 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.4 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.3 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.7 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.5 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.4 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.0 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.3 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.0.rc2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.27.0.rc1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.2 lib/decidim/api/types/attachment_type.rb