Sha256: 0eec52fd07c29c8d506d48220f7a0aec253fa7615ce040d9a0bbd6b5b1354496

Contents?: true

Size: 589 Bytes

Versions: 31

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class CategoryInputFilter < BaseInputFilter
      graphql_name "CategoryFilter"
      description "A type used for filtering any category objects"

      argument :parent_id,
               type: [ID, { null: true }],
               description: "Returns the sub-categories for the given parent category or top-level categories if set to `null`",
               required: false,
               prepare: lambda { |parent_id, _ctx|
                          { parent_id: parent_id }
                        }
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-core-0.27.9 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.8 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.7 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.6 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.10 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.9 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.5 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.8 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.4 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.3 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.7 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.5 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.2 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.1 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.4 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.0 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.3 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.0.rc2 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.27.0.rc1 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.2 lib/decidim/api/input_filters/category_input_filter.rb