I have to get the data from quote_item table using quote id and product id filter in Magento 2.
I was doing like this but it's not the good way
$connection->select()
->from(
['ce' => 'quote_item'],
['length']
)->where('ce.quote_id IN (?) ',$quoteId)
->where('ce.product_id IN (?) ',$product_id);
Best Answer