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.26.1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.0 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.0.rc2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.26.0.rc1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.0 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.0.rc4 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.0.rc3 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.0.rc2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.25.0.rc1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.3 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.1 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.0 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.0.rc2 lib/decidim/api/types/attachment_type.rb
decidim-core-0.24.0.rc1 lib/decidim/api/types/attachment_type.rb