I'm using Magento v2.3, I want to add out of stock products to cart without changing any configuration from backend.
I'm using following function to add product to cart
from following class
But it checks for saleable quantity.
Is there any way to ignore saleable check and add out of stock products to cart?