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

Version Path
decidim-core-0.26.8 lib/decidim/api/types/category_type.rb
decidim-core-0.27.4 lib/decidim/api/types/category_type.rb
decidim-core-0.27.3 lib/decidim/api/types/category_type.rb
decidim-core-0.26.7 lib/decidim/api/types/category_type.rb
decidim-core-0.26.5 lib/decidim/api/types/category_type.rb
decidim-core-0.27.2 lib/decidim/api/types/category_type.rb
decidim-core-0.27.1 lib/decidim/api/types/category_type.rb
decidim-core-0.26.4 lib/decidim/api/types/category_type.rb
decidim-core-0.27.0 lib/decidim/api/types/category_type.rb
decidim-core-0.26.3 lib/decidim/api/types/category_type.rb
decidim-core-0.27.0.rc2 lib/decidim/api/types/category_type.rb
decidim-core-0.27.0.rc1 lib/decidim/api/types/category_type.rb
decidim-core-0.26.2 lib/decidim/api/types/category_type.rb
decidim-core-0.26.1 lib/decidim/api/types/category_type.rb
decidim-core-0.26.0 lib/decidim/api/types/category_type.rb
decidim-core-0.26.0.rc2 lib/decidim/api/types/category_type.rb
decidim-core-0.26.0.rc1 lib/decidim/api/types/category_type.rb
decidim-core-0.25.2 lib/decidim/api/types/category_type.rb
decidim-core-0.25.1 lib/decidim/api/types/category_type.rb
decidim-core-0.25.0 lib/decidim/api/types/category_type.rb