Sha256: 58cfb5375fad186fa883774265b692bc136902b2ab376f1402d5a387aed7a6dd

Contents?: true

Size: 778 Bytes

Versions: 37

Compression:

Stored size: 778 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Blogs
    # This type represents a Post.
    class PostType < Decidim::Api::Types::BaseObject
      implements Decidim::Comments::CommentableInterface
      implements Decidim::Core::AttachableInterface
      implements Decidim::Core::AuthorableInterface
      implements Decidim::Core::TraceableInterface
      implements Decidim::Core::EndorsableInterface
      implements Decidim::Core::TimestampsInterface

      description "A post"

      field :id, GraphQL::Types::ID, "The internal ID of this post", null: false
      field :title, Decidim::Core::TranslatedFieldType, "The title for this post", null: true
      field :body, Decidim::Core::TranslatedFieldType, "The body of this post", null: true
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

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