magento2 – How to get orders based on custom attribute value of product?


I have a Custom attribute name ( product string ) on Product in which i have save a string i want to get those orders which will have that product string of same value.

I will get the product by :

$collection = $this->_orderCollectionFactory->create()
            ->addAttributeToSelect('*')
            ->setOrder('created_at','desc');
return $collection;