Getting orders by property in Commerce 2 from Plugin In Commerce 1 i can select orders by a specific property as follows:

$criteria = craft()-&gt;elements-&gt;getCriteria('Commerce_Order');
$criteria['orderStatusId'] = 1;
return craft()-&gt;elements-&gt;getCriteria('Commerce_Order', $criteria);


How can i do this in Commerce 2?
use craft\commerce\elements\Product;

$products = Product::find()-&gt;orderStatus(1)-&gt;all();