I am trying to fetch all categories with filter, but it throws following error :
1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid method Magento\Catalog\Model\Category\Interceptor::addFieldToFilter
And i have also tried with addFieldToFilter
and addAttributeToFilter
but still it says invalid method.
I want all categories filter with Display mode.
Please Help!