Sha256: 7d94460a8c455f74af386f1b6d8e2a29b14e590486c7d06f2e971ebd0c4aba11
Contents?: true
Size: 762 Bytes
Versions: 9
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module Decidim module Blogs # This type represents a Post. PostType = GraphQL::ObjectType.define do interfaces [ -> { Decidim::Comments::CommentableInterface }, -> { Decidim::Core::AttachableInterface }, -> { Decidim::Core::AuthorableInterface }, -> { Decidim::Core::TraceableInterface }, -> { Decidim::Core::EndorsableInterface }, -> { Decidim::Core::TimestampsInterface } ] name "Post" description "A post" field :id, !types.ID, "The internal ID of this post" field :title, Decidim::Core::TranslatedFieldType, "The title for this post" field :body, Decidim::Core::TranslatedFieldType, "The body of this post" end end end
Version data entries
9 entries across 9 versions & 1 rubygems