Magento2 in we have collection of order, product, customer etc. For some bussiness logic we need filter collection with difeerent conditions to get data. In this blog we can see different type of condition for addAttributeToFilter and addFieldToFilter in magento2.We can use addAttributeToFilter and addFieldToFilter we below conditions.Here simple code of load product collection with addAttributeToFilter. Here mention all condition with sample code. Equal Value (eq) Not Equal Value (neq) Like Value (like) From Value…