I tried to query products in Magento 2 GraphQL using the bellow query, but the results only shows “IN_STOCK” products:
{
products(
filter:
{
sku:
{
in: (
"SKU_001",
"SKU_002",
"SKU_003"
)
}
}
) {
items {
name
sku
stock_status
price_range {
minimum_price {
regular_price {
value
currency
}
}
}
}
total_count
page_info {
page_size
}
}
}
I tried to set to “true” the “Display out of stock products” config in Stores > Configuration > Catalog > Inventory > Stock Options and run a reindex but the results are the same.
Is there a way to query IN_STOCK and OUT_OF_STOCK products together?