Sha256: 40169e61fe1a0683a96fa2aac3dbd254834da9ca67241ca4595fcf4389d8e550
Contents?: true
Size: 572 Bytes
Versions: 50
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true module Decidim module Core class CategoryType < Decidim::Api::Types::BaseObject description "A category that can be applied to other resources." field :id, GraphQL::Types::ID, null: false field :name, Decidim::Core::TranslatedFieldType, "The name of this category.", null: false field :subcategories, [Decidim::Core::CategoryType, { null: true }], "Subcategories of this category.", null: false field :parent, Decidim::Core::CategoryType, "This category's parent category.", null: true end end end
Version data entries
50 entries across 50 versions & 1 rubygems