Sha256: 42e5e6b3421f0b2f1a285106d0d99d89ac85828bb4996097264860c48e28d5f9

Contents?: true

Size: 609 Bytes

Versions: 21

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Pages
    PageType = GraphQL::ObjectType.define do
      name "Page"
      description "A page"

      field :id, !types.ID
      field :title, !Decidim::Core::TranslatedFieldType, "The title of this page (same as the component name)."
      field :body, Decidim::Core::TranslatedFieldType, "The body of this page."
      field :createdAt, !Decidim::Core::DateTimeType, "The time this page was created", property: :created_at
      field :updatedAt, !Decidim::Core::DateTimeType, "The time this page was updated", property: :updated_at
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
decidim-pages-0.16.0 app/types/decidim/pages/page_type.rb