Sha256: d5b2471ff9daa148310cdf8a6abbe4d6b40d4e6d92ee0492e4b85611aa3f32db

Contents?: true

Size: 503 Bytes

Versions: 38

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    CategoryType = GraphQL::ObjectType.define do
      name "Category"
      description "A category that can be applied to other resources."

      field :id, !types.ID
      field :name, !TranslatedFieldType, "The name of this category."

      field :subcategories, !types[Decidim::Core::CategoryType], "Subcategories of this category."
      field :parent, Decidim::Core::CategoryType, "This category's parent category."
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-core-0.23.6 app/types/decidim/core/category_type.rb
decidim-core-0.23.5 app/types/decidim/core/category_type.rb
decidim-core-0.23.4 app/types/decidim/core/category_type.rb
decidim-core-0.23.3 app/types/decidim/core/category_type.rb
decidim-core-0.23.2 app/types/decidim/core/category_type.rb
decidim-core-0.23.1 app/types/decidim/core/category_type.rb
decidim-core-0.23.1.rc1 app/types/decidim/core/category_type.rb
decidim-core-0.23.0 app/types/decidim/core/category_type.rb
decidim-core-0.22.0 app/types/decidim/core/category_type.rb
decidim-core-0.21.0 app/types/decidim/core/category_type.rb
decidim-core-0.20.1 app/types/decidim/core/category_type.rb
decidim-core-0.20.0 app/types/decidim/core/category_type.rb
decidim-core-0.19.1 app/types/decidim/core/category_type.rb
decidim-core-0.18.1 app/types/decidim/core/category_type.rb
decidim-core-0.19.0 app/types/decidim/core/category_type.rb
decidim-core-0.17.2 app/types/decidim/core/category_type.rb
decidim-core-0.18.0 app/types/decidim/core/category_type.rb
decidim-core-0.17.1 app/types/decidim/core/category_type.rb
decidim-core-0.16.1 app/types/decidim/core/category_type.rb
decidim-core-0.17.0 app/types/decidim/core/category_type.rb