Closed
Description
Describe the bug
I use removeOptionGroupFromProduct
to remove an optionGroup from a product,all the productVariants
have been softDelete
.
But after this remove,I can still useProductOptionGroup
GraphQL API get the optionGroup
which had been deleted .I checked the database and the column deletedAt
has value,I was so weird why I could get an entity which had been softDeleted.
To Reproduce
Steps to reproduce the behavior:
- Create a
Product
- Create some
optionGroups
- Create some
options
in everyoptionGroup
- Create some
ProductVariants
- Call
deleteProductVariant
GraphQL to softDelete allProductVariants
- Call
deleteProductOption
GraphQL to delete alloptions
- Call
removeOptionGroupFromProduct
GraphQL to remove alloptionGroups
from this product - Call
ProductOptionGroup
GraphQL withproductOptionGroupId
to retrieve the option group,I can still get the removedoptionGroups
Expected behavior
After removeOptionGroupFromProduct
,the ProductOptionGroup
shouldn't be retrieved.
Environment (please complete the following information):
- @vendure/core version: V3.1.0
- Nodejs version: V22.10.0
- Database (mysql/postgres etc): postgres
Additional context
Use Admin UI
to create product details.Use PostMan
to test GraphQL.
Thanks~
Metadata
Metadata
Assignees
Type
Projects
Status
♻️ In progress