Collections return disabled products
Closed this issue · 1 comments
RoyalFoxy commented
Describe the bug
Collections return disabled products.
To Reproduce
Steps to reproduce the behavior:
- Create product
- Disable product
- Create collection which connects to this product
- See disabled product on collection result
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
- @vendure/core version: 3.0.5
- Nodejs version: 22.8.0
- Database (mysql/postgres etc): Postgres
Additional context
It's basically the same issue as 1213 but with products instead of product variants.
To retrieve the disabled products I've used this query
query($collectionId: ID) {
collection(id: $collectionId) {
id
products {
items {
id
}
}
}
}
RoyalFoxy commented
Oops I didn't even know we made the products resolver ourselves... Our fault!