Sha256: 2dff0c0108031a8c4a0144e8f399296df0ece938384c7fe2bcb5ce8c6552c0cf
Contents?: true
Size: 681 Bytes
Versions: 17
Compression:
Stored size: 681 Bytes
Contents
# frozen_string_literal: true module Decidim module Core # This interface represents a resource that contains categories. module CategoriesContainerInterface include Decidim::Api::Types::BaseInterface description "An interface that can be used in objects that contain categories." field :categories, [Decidim::Core::CategoryType, { null: true }], "Categories for this space", null: false do argument :filter, Decidim::Core::CategoryInputFilter, "Provides several methods to filter the results", required: false end def categories(filter: {}) CategoryList.new.call(object, { filter: }, context) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems