In Magento There are many conditions to filter specific collection using addAttributeToFilter or addFieldToFilter function.
In Development time you have faced issue related to collection filter based on your requirement you can use below set of conditions in your coding for filter of a collection. Syntax: addFieldToFilter($field, $condition = null)
Where $field is your table field name.
$condition is your below list of sql condition. Second parameter is string or array.
Different SQL Conditions 'eq' => "{{fieldName}} = ?", 'neq' => "{{fieldName}} != ?", 'like' => "{{fieldName}} LIKE ?", 'nlike' => "{{fieldName}} NOT LIKE ?", 'in' => "{{fieldName}} IN(?)", 'nin' => "{{fieldName}} NOT IN(?)", 'is' => "{{fieldName}} IS ?", 'notnull' => "{{fieldName}} IS NOT NULL", 'null' => "{{fieldName}} IS NULL", 'gt' => "{{fieldName}} > ?", 'lt' => "{{fieldName}} < ?", 'gteq' => "{{fieldName}} >= ?", 'lteq' => "{{fieldName}} <= ?", 'finset' => "FIND_IN_SET(?, {{fieldName}})", 'regexp' => "{{fieldName}} REGEXP ?", 'from' => "{{fieldName}} >= ?", 'to' => "{{fieldName}} <= ?", 'seq' => null, 'sneq' => null, 'ntoa' => "INET_NTOA({{fieldName}}) LIKE ?"
Example:
$product = $this->productFactory->create()->getCollection() ->addAttributeToFilter('sku', ['eq' => '24-MB01']);
You can use any field type from above to filter your query.