Mutation publishablePublish support variantId?

Hi,

Does mutation publishablePublish support variantId as id?

@ChrisBradley No, the publishablePublish does not support a ProductVariant GID as the "id’
The ProductVariant does not implement the Publishable interface so passing a variant GID will result an error.
Instead of that you can work at the product level - publish the parent product via publishablePublish using its product gid. Then all the active variants under that product will be visible in the published channel.

@Andrii_Hudimov Thanks, I was kind of assuming that it would work the way unpublish would TBH.

Yeah that logic makes sense, Publish Product > Unpublish Variants (workaround i was already working with).

@Andrii_Hudimov add it to my list of wishes I guess :pleading_face:

interestingly, If we unpublish a variant, then republish the product, the unpublished state remains for the variant for the publication id. which i guess is a little bit of an issue.

yes, you are right. Shopify willl update it soon. :slight_smile:

hope soo, def not feeling happy about unpublishing and then maybe having to publish manually…

Yes @ChrisBradley so do I. :slight_smile: