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.26.1 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.0 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.0.rc2 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.26.0.rc1 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.2 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.1 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.0 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.0.rc4 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.0.rc3 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.0.rc2 lib/decidim/api/input_filters/category_input_filter.rb
decidim-core-0.25.0.rc1 lib/decidim/api/input_filters/category_input_filter.rb