Dear Experts,
I am deleting product variant by grpahQL command. After executed GraphQL delete command, when we visit the webpage we see the deleted variant is disappeared under that product which is as expected. But if I send the API command immediately to know the product variant list, the deleted variant still showing under that product in the API response.
After deleted variant we need to perform another command as if there are no variant exists under that product, product status should be updated from “Active” to “Draft”. But we could not determined through API call correctly the number of variant available for this product.
Could you please help us after deleted any variant using graphql how to verify through API call the variant is deleted? Also am I missing any additional steps that is required to delete variant so that API call doesn’t count that deleted variant info?
Thank you,
Kamal Hossain