Sha256: d6bd7eba7016ab55e4c5167a69f2dd3584207b9360aa618f74f65c28b351f4d9
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 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 } ] 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" field :createdAt, Decidim::Core::DateTimeType, "The time this post was created", property: :created_at field :updatedAt, Decidim::Core::DateTimeType, "The time this post was updated", property: :updated_at end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-blogs-0.21.0 | app/types/decidim/blogs/post_type.rb |